mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
sw_engine renderer: accept stroke less 1 width size.
Change-Id: I5fe6a0993ab5c1abc79d89834ea04c25b059c320
This commit is contained in:
parent
c235b7b81d
commit
ec03afa83a
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ void* SwRenderer::prepare(const Shape& sdata, void* data, const RenderTransform*
|
|||
|
||||
//Stroke
|
||||
if (flags & (RenderUpdateFlag::Stroke | RenderUpdateFlag::Transform)) {
|
||||
if (sdata.strokeWidth() > 0.5) {
|
||||
if (sdata.strokeWidth() > FLT_EPSILON) {
|
||||
shapeResetStroke(*shape, sdata);
|
||||
uint8_t alpha = 0;
|
||||
sdata.strokeColor(nullptr, nullptr, nullptr, &alpha);
|
||||
|
|
Loading…
Add table
Reference in a new issue