mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
sw_engine Renderer: Fix build problem caused by merge conflict.
This commit is contained in:
parent
d86032df36
commit
70e1e7f1c6
1 changed files with 4 additions and 3 deletions
|
@ -336,9 +336,10 @@ bool SwRenderer::renderShape(RenderData data)
|
|||
if (auto strokeFill = task->sdata->strokeFill()) {
|
||||
rasterGradientStroke(surface, &task->shape, strokeFill->id());
|
||||
} else {
|
||||
if (task->sdata->strokeColor(&r, &g, &b, &a) == Result::Success) {
|
||||
a = static_cast<uint8_t>((opacity * (uint32_t) a) / 255);
|
||||
if (a > 0) rasterStroke(surface, &task->shape, r, g, b, a);
|
||||
if (task->sdata->strokeColor(&r, &g, &b, &a) == Result::Success) {
|
||||
a = static_cast<uint8_t>((opacity * (uint32_t) a) / 255);
|
||||
if (a > 0) rasterStroke(surface, &task->shape, r, g, b, a);
|
||||
}
|
||||
}
|
||||
|
||||
if (task->cmpStroking) endComposite(cmp);
|
||||
|
|
Loading…
Add table
Reference in a new issue