Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a992ab45 authored by Teng-Hui Zhu's avatar Teng-Hui Zhu
Browse files

Fix segment number for arcTo conversion

AOSP bug:
https://code.google.com/p/android/issues/detail?id=188594

Change-Id: Iaebb8ec7782658a1438cf973ed9a8799da0fdea3
parent ec3d759a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -660,7 +660,7 @@ public class PathParser {
            // and http://www.spaceroots.org/documents/ellipse/node22.html

            // Maximum of 45 degrees per cubic Bezier segment
            int numSegments = Math.abs((int) Math.ceil(sweep * 4 / Math.PI));
            int numSegments = (int) Math.ceil(Math.abs(sweep * 4 / Math.PI));

            double eta1 = start;
            double cosTheta = Math.cos(theta);