mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
sw_engine: fix a regression bug
After introducing the length measurement
of approximate and exact Bezier curves in
a8c0030d80
the calculation of the outline length still
used the approximate functions, while further
calculations took the exact value into account.
This discrepancy led to the creation of artifacts.
@Issue: https://github.com/thorvg/thorvg/issues/2021
This commit is contained in:
parent
b95cb0441d
commit
f535a6e139
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ static float _outlineLength(const RenderShape* rshape)
|
|||
break;
|
||||
}
|
||||
case PathCommand::CubicTo: {
|
||||
length += bezLengthApprox({*(pts - 1), *pts, *(pts + 1), *(pts + 2)});
|
||||
length += bezLength({*(pts - 1), *pts, *(pts + 1), *(pts + 2)});
|
||||
pts += 3;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue