aboutsummaryrefslogtreecommitdiff
path: root/src/share/classes/sun/java2d/marlin/DStroker.java
diff options
context:
space:
mode:
authorbourgesl <bourges.laurent@gmail.com>2018-05-25 10:58:16 +0200
committerbourgesl <bourges.laurent@gmail.com>2018-05-25 10:58:16 +0200
commiteffa5f262c3a8d80bc82cf70531e589b53134630 (patch)
treec5c2c921102ab82f502c0d119145acb582ea47de /src/share/classes/sun/java2d/marlin/DStroker.java
parent667a5e9da791b82133306fcb4941d0c05195ca09 (diff)
downloadjdk8u_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.java10
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:
}
}