mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
loaders: ++chores
This commit is contained in:
parent
bc5d90c157
commit
745b4f4628
2 changed files with 3 additions and 6 deletions
|
@ -218,15 +218,12 @@ struct LottieProperty
|
|||
|
||||
static void _copy(PathSet* pathset, Array<Point>& out, Matrix* transform)
|
||||
{
|
||||
Array<Point> in;
|
||||
|
||||
if (transform) {
|
||||
for (int i = 0; i < pathset->ptsCnt; ++i) {
|
||||
Point pt = pathset->pts[i];
|
||||
pt *= *transform;
|
||||
out.push(pt);
|
||||
out.push(pathset->pts[i] * *transform);
|
||||
}
|
||||
} else {
|
||||
Array<Point> in;
|
||||
in.data = pathset->pts;
|
||||
in.count = pathset->ptsCnt;
|
||||
out.push(in);
|
||||
|
|
|
@ -409,7 +409,7 @@ static Paint* _applyProperty(SvgLoaderData& loaderData, SvgNode* node, Shape* vg
|
|||
vg->fill(style->fill.paint.color.r, style->fill.paint.color.g, style->fill.paint.color.b, style->fill.opacity);
|
||||
}
|
||||
|
||||
vg->fill((tvg::FillRule)style->fill.fillRule);
|
||||
vg->fill(style->fill.fillRule);
|
||||
vg->order(!style->paintOrder);
|
||||
vg->opacity(style->opacity);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue