mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +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)
|
static void _copy(PathSet* pathset, Array<Point>& out, Matrix* transform)
|
||||||
{
|
{
|
||||||
Array<Point> in;
|
|
||||||
|
|
||||||
if (transform) {
|
if (transform) {
|
||||||
for (int i = 0; i < pathset->ptsCnt; ++i) {
|
for (int i = 0; i < pathset->ptsCnt; ++i) {
|
||||||
Point pt = pathset->pts[i];
|
out.push(pathset->pts[i] * *transform);
|
||||||
pt *= *transform;
|
|
||||||
out.push(pt);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Array<Point> in;
|
||||||
in.data = pathset->pts;
|
in.data = pathset->pts;
|
||||||
in.count = pathset->ptsCnt;
|
in.count = pathset->ptsCnt;
|
||||||
out.push(in);
|
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(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->order(!style->paintOrder);
|
||||||
vg->opacity(style->opacity);
|
vg->opacity(style->opacity);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue