Skip to content

Commit

Permalink
fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgesl committed Dec 19, 2016
1 parent cd1a5c0 commit 0b3ab91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/main/java/org/marlin/pisces/MarlinTileGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/org/marlin/pisces/Renderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0b3ab91

Please sign in to comment.