From 25501b74523f9e2add078c687923ab3d1d7a9808 Mon Sep 17 00:00:00 2001 From: bourgesl Date: Thu, 2 Nov 2017 22:29:00 +0100 Subject: [PATCH] fixed white spaces --- src/main/java/org/marlin/pisces/DMarlinRenderingEngine.java | 2 +- src/main/java/org/marlin/pisces/DStroker.java | 4 +++- src/main/java/org/marlin/pisces/MarlinProperties.java | 4 ++-- src/main/java/org/marlin/pisces/MarlinRenderingEngine.java | 2 +- src/main/java/org/marlin/pisces/Stroker.java | 4 +++- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/marlin/pisces/DMarlinRenderingEngine.java b/src/main/java/org/marlin/pisces/DMarlinRenderingEngine.java index e4c4455..2a1c07b 100644 --- a/src/main/java/org/marlin/pisces/DMarlinRenderingEngine.java +++ b/src/main/java/org/marlin/pisces/DMarlinRenderingEngine.java @@ -90,7 +90,7 @@ abstract PathIterator getNormalizingPathIterator(DRendererContext rdrCtx, static final boolean DO_TRACE_PATH = false; static final boolean DO_CLIP_RUNTIME_ENABLE = MarlinProperties.isDoClipRuntimeFlag(); - + static final boolean DO_CLIP_TEST = false; /** diff --git a/src/main/java/org/marlin/pisces/DStroker.java b/src/main/java/org/marlin/pisces/DStroker.java index 84c2112..43b91ab 100644 --- a/src/main/java/org/marlin/pisces/DStroker.java +++ b/src/main/java/org/marlin/pisces/DStroker.java @@ -191,6 +191,8 @@ DStroker init(final DPathConsumer2D pc2d, this.clipRect = _clipRect; } else { this.clipRect = null; + this.cOutCode = 0; + this.sOutCode = 0; } return this; // fluent API } @@ -586,7 +588,7 @@ public void closePath() { lineTo(sx0, sy0, true); } - drawJoin(cdx, cdy, cx0, cy0, sdx, sdy, cmx, cmy, smx, smy, cOutCode); + drawJoin(cdx, cdy, cx0, cy0, sdx, sdy, cmx, cmy, smx, smy, sOutCode); emitLineTo(sx0 + smx, sy0 + smy); diff --git a/src/main/java/org/marlin/pisces/MarlinProperties.java b/src/main/java/org/marlin/pisces/MarlinProperties.java index 3556c51..4d33c36 100644 --- a/src/main/java/org/marlin/pisces/MarlinProperties.java +++ b/src/main/java/org/marlin/pisces/MarlinProperties.java @@ -152,11 +152,11 @@ public static boolean isDoClip() { public static boolean isDoClipRuntimeFlag() { return getBoolean("sun.java2d.renderer.clip.runtime.enable", "false"); } - + public static boolean isDoClipAtRuntime() { return getBoolean("sun.java2d.renderer.clip.runtime", "true"); } - + // debugging parameters public static boolean isDoStats() { diff --git a/src/main/java/org/marlin/pisces/MarlinRenderingEngine.java b/src/main/java/org/marlin/pisces/MarlinRenderingEngine.java index 16ff96e..be66caa 100644 --- a/src/main/java/org/marlin/pisces/MarlinRenderingEngine.java +++ b/src/main/java/org/marlin/pisces/MarlinRenderingEngine.java @@ -91,7 +91,7 @@ abstract PathIterator getNormalizingPathIterator(RendererContext rdrCtx, static final boolean DO_TRACE_PATH = false; static final boolean DO_CLIP_RUNTIME_ENABLE = MarlinProperties.isDoClipRuntimeFlag(); - + static final boolean DO_CLIP_TEST = false; /** diff --git a/src/main/java/org/marlin/pisces/Stroker.java b/src/main/java/org/marlin/pisces/Stroker.java index 20a3da3..b938690 100644 --- a/src/main/java/org/marlin/pisces/Stroker.java +++ b/src/main/java/org/marlin/pisces/Stroker.java @@ -193,6 +193,8 @@ Stroker init(final PathConsumer2D pc2d, this.clipRect = _clipRect; } else { this.clipRect = null; + this.cOutCode = 0; + this.sOutCode = 0; } return this; // fluent API } @@ -588,7 +590,7 @@ public void closePath() { lineTo(sx0, sy0, true); } - drawJoin(cdx, cdy, cx0, cy0, sdx, sdy, cmx, cmy, smx, smy, cOutCode); + drawJoin(cdx, cdy, cx0, cy0, sdx, sdy, cmx, cmy, smx, smy, sOutCode); emitLineTo(sx0 + smx, sy0 + smy);