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