mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
sw_engine: fixed a a regression bug during main dev
borker by 14130e7e72afaecff2dd091e5e272169c79515b9
This commit is contained in:
parent
a6898ccf42
commit
bb6458b50a
1 changed files with 12 additions and 8 deletions
|
@ -118,7 +118,7 @@ struct SwShapeTask : SwTask
|
||||||
|
|
||||||
auto strokeWidth = validStrokeWidth();
|
auto strokeWidth = validStrokeWidth();
|
||||||
SwBBox renderRegion{};
|
SwBBox renderRegion{};
|
||||||
auto updateShape = (RenderUpdateFlag::Path | RenderUpdateFlag::Transform | RenderUpdateFlag::Clip);
|
auto updateShape = flags & (RenderUpdateFlag::Path | RenderUpdateFlag::Transform | RenderUpdateFlag::Clip);
|
||||||
auto updateFill = false;
|
auto updateFill = false;
|
||||||
|
|
||||||
//Shape
|
//Shape
|
||||||
|
@ -145,13 +145,17 @@ struct SwShapeTask : SwTask
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Stroke
|
//Stroke
|
||||||
if ((updateShape || flags & RenderUpdateFlag::Stroke) && (strokeWidth > 0.0f)) {
|
if (updateShape || flags & RenderUpdateFlag::Stroke) {
|
||||||
shapeResetStroke(&shape, rshape, transform);
|
if (strokeWidth > 0.0f) {
|
||||||
if (!shapeGenStrokeRle(&shape, rshape, transform, bbox, renderRegion, mpool, tid)) goto err;
|
shapeResetStroke(&shape, rshape, transform);
|
||||||
if (auto fill = rshape->strokeFill()) {
|
if (!shapeGenStrokeRle(&shape, rshape, transform, bbox, renderRegion, mpool, tid)) goto err;
|
||||||
auto ctable = (flags & RenderUpdateFlag::GradientStroke) ? true : false;
|
if (auto fill = rshape->strokeFill()) {
|
||||||
if (ctable) shapeResetStrokeFill(&shape);
|
auto ctable = (flags & RenderUpdateFlag::GradientStroke) ? true : false;
|
||||||
if (!shapeGenStrokeFillColors(&shape, fill, transform, surface, opacity, ctable)) goto err;
|
if (ctable) shapeResetStrokeFill(&shape);
|
||||||
|
if (!shapeGenStrokeFillColors(&shape, fill, transform, surface, opacity, ctable)) goto err;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
shapeDelStroke(&shape);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue