< prev index next >

modules/javafx.graphics/src/main/java/com/sun/marlin/Dasher.java

Print this page

        

*** 188,203 **** public float[] copyDashArray(final float[] dashes) { final int len = dashes.length; final float[] newDashes; if (len <= MarlinConst.INITIAL_ARRAY) { ! newDashes = rdrCtx.dasher.dashes_ref.initial; } else { if (DO_STATS) { rdrCtx.stats.stat_array_dasher_dasher.add(len); } ! newDashes = rdrCtx.dasher.dashes_ref.getArray(len); } System.arraycopy(dashes, 0, newDashes, 0, len); return newDashes; } --- 188,203 ---- public float[] copyDashArray(final float[] dashes) { final int len = dashes.length; final float[] newDashes; if (len <= MarlinConst.INITIAL_ARRAY) { ! newDashes = dashes_ref.initial; } else { if (DO_STATS) { rdrCtx.stats.stat_array_dasher_dasher.add(len); } ! newDashes = dashes_ref.getArray(len); } System.arraycopy(dashes, 0, newDashes, 0, len); return newDashes; }
< prev index next >