From 0b3ab9102e1c79aef32dd2c54f7a1679c84ad7bd Mon Sep 17 00:00:00 2001 From: bourgesl Date: Mon, 19 Dec 2016 20:59:12 +0100 Subject: [PATCH] fixed indentation --- src/main/java/org/marlin/pisces/MarlinTileGenerator.java | 4 +++- src/main/java/org/marlin/pisces/Renderer.java | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/marlin/pisces/MarlinTileGenerator.java b/src/main/java/org/marlin/pisces/MarlinTileGenerator.java index 62c4511..572b951 100644 --- a/src/main/java/org/marlin/pisces/MarlinTileGenerator.java +++ b/src/main/java/org/marlin/pisces/MarlinTileGenerator.java @@ -59,7 +59,9 @@ final class MarlinTileGenerator implements AATileGenerator, MarlinConst { // per-thread renderer stats final RendererStats rdrStats; - MarlinTileGenerator(final RendererStats stats, MarlinRenderer r, MarlinCache cache) { + MarlinTileGenerator(final RendererStats stats, final MarlinRenderer r, + final MarlinCache cache) + { this.rdrStats = stats; if (r instanceof Renderer) { this.rdrF = (Renderer)r; diff --git a/src/main/java/org/marlin/pisces/Renderer.java b/src/main/java/org/marlin/pisces/Renderer.java index bdfafb8..1baa09e 100644 --- a/src/main/java/org/marlin/pisces/Renderer.java +++ b/src/main/java/org/marlin/pisces/Renderer.java @@ -262,7 +262,6 @@ private void curveBreakIntoLinesAndAdd(float x0, float y0, while (count > 0) { // divide step by half: while (Math.abs(ddx) + Math.abs(ddy) >= _DEC_BND) { -// while (Math.abs(ddx) >= _DEC_BND || Math.abs(ddy) >= _DEC_BND) { dddx /= 8.0f; dddy /= 8.0f; ddx = ddx / 4.0f - dddx; @@ -279,7 +278,6 @@ private void curveBreakIntoLinesAndAdd(float x0, float y0, // double step: // can only do this on even "count" values, because we must divide count by 2 while (count % 2 == 0 -// && Math.abs(dx) <= _INC_BND && Math.abs(dy) <= _INC_BND) && Math.abs(dx) + Math.abs(dy) <= _INC_BND) { dx = 2.0f * dx + ddx; @@ -621,7 +619,7 @@ Renderer init(final int pix_boundsX, final int pix_boundsY, /** * Disposes this renderer and recycle it clean up before reusing this instance */ - public void dispose() { + void dispose() { if (DO_STATS) { rdrCtx.stats.stat_rdr_activeEdges.add(activeEdgeMaxUsed); rdrCtx.stats.stat_rdr_edges.add(edges.used);