mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
sw_engine: fix a regression bug.
stroke line drawing has been broken at a certain case,
this reverts a part of change from the old optimization:
d81f5d29fb
note that this change wouldn't affect any performance.
issue: https://github.com/thorvg/thorvg/issues/2015
This commit is contained in:
parent
3ed8309a11
commit
604c4dc0b0
1 changed files with 0 additions and 6 deletions
|
@ -50,12 +50,6 @@ bool mathSmallCubic(const SwPoint* base, SwFixed& angleIn, SwFixed& angleMid, Sw
|
||||||
auto d2 = base[1] - base[2];
|
auto d2 = base[1] - base[2];
|
||||||
auto d3 = base[0] - base[1];
|
auto d3 = base[0] - base[1];
|
||||||
|
|
||||||
if (d1 == d2 || d2 == d3) {
|
|
||||||
if (d3.small()) angleIn = angleMid = angleOut = 0;
|
|
||||||
else angleIn = angleMid = angleOut = mathAtan(d3);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (d1.small()) {
|
if (d1.small()) {
|
||||||
if (d2.small()) {
|
if (d2.small()) {
|
||||||
if (d3.small()) {
|
if (d3.small()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue