< prev index next >
modules/javafx.graphics/src/main/java/com/sun/prism/impl/shape/MarlinPrismUtils.java
Print this page
@@ -78,11 +78,11 @@
BaseTransform strokerTx = null;
int dashLen = -1;
boolean recycleDashes = false;
- float width = 0f, dashphase = 0f;
+ float width = 0.0f, dashphase = 0.0f;
float[] dashes = null;
if (stroke != null) {
width = stroke.getLineWidth();
dashes = stroke.getDashArray();
@@ -175,11 +175,11 @@
*/
return pc;
}
private static boolean nearZero(final double num) {
- return Math.abs(num) < 2.0 * Math.ulp(num);
+ return Math.abs(num) < 2.0d * Math.ulp(num);
}
public static MarlinRenderer setupRenderer(
final RendererContext rdrCtx,
final Shape shape,
< prev index next >