diff options
author | bourgesl <bourges.laurent@gmail.com> | 2018-05-25 10:58:16 +0200 |
---|---|---|
committer | bourgesl <bourges.laurent@gmail.com> | 2018-05-25 10:58:16 +0200 |
commit | effa5f262c3a8d80bc82cf70531e589b53134630 (patch) | |
tree | c5c2c921102ab82f502c0d119145acb582ea47de /src/share/classes/sun/java2d/marlin/DStroker.java | |
parent | 667a5e9da791b82133306fcb4941d0c05195ca09 (diff) | |
download | jdk8u_jdk-effa5f262c3a8d80bc82cf70531e589b53134630.tar.gz |
upgrade to Marlin 0.9.2
Diffstat (limited to 'src/share/classes/sun/java2d/marlin/DStroker.java')
-rw-r--r-- | src/share/classes/sun/java2d/marlin/DStroker.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/share/classes/sun/java2d/marlin/DStroker.java b/src/share/classes/sun/java2d/marlin/DStroker.java index ddeadc8a97..00bdec4220 100644 --- a/src/share/classes/sun/java2d/marlin/DStroker.java +++ b/src/share/classes/sun/java2d/marlin/DStroker.java @@ -304,13 +304,9 @@ final class DStroker implements DPathConsumer2D, MarlinConst { // If it is >=0, we know that abs(ext) is <= 90 degrees, so we only // need 1 curve to approximate the circle section that joins omx,omy // and mx,my. - final int numCurves = (cosext >= 0.0d) ? 1 : 2; - - switch (numCurves) { - case 1: + if (cosext >= 0.0d) { drawBezApproxForArc(cx, cy, omx, omy, mx, my, rev); - break; - case 2: + } else { // we need to split the arc into 2 arcs spanning the same angle. // The point we want will be one of the 2 intersections of the // perpendicular bisector of the chord (omx,omy)->(mx,my) and the @@ -339,8 +335,6 @@ final class DStroker implements DPathConsumer2D, MarlinConst { } drawBezApproxForArc(cx, cy, omx, omy, mmx, mmy, rev); drawBezApproxForArc(cx, cy, mmx, mmy, mx, my, rev); - break; - default: } } |