loaders: ++chores

This commit is contained in:
Hermet Park 2025-03-26 17:13:52 +09:00
parent bc5d90c157
commit 745b4f4628
2 changed files with 3 additions and 6 deletions

View file

@ -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);

View file

@ -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);