Skip to content

Commit

Permalink
restored small perf gain
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgesl committed Oct 24, 2021
1 parent 5442c63 commit 008c026
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/marlin/pisces/DStroker.java
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,6 @@ private void drawJoin(double pdx, double pdy,
this.smx = mx;
this.smy = my;
}
prev = DRAWING_OP_TO;
} else if (rdrCtx.isFirstSegment) {
// Precision on isCW is causing instabilities with Dasher !
final boolean cw = isCW(pdx, pdy, dx, dy);
Expand All @@ -798,6 +797,7 @@ private void drawJoin(double pdx, double pdy,
// reset trigger to process further joins (normal operations)
rdrCtx.isFirstSegment = true;
}
prev = DRAWING_OP_TO;
}

private int getLineOffsets(final double x1, final double y1,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/marlin/pisces/Stroker.java
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,6 @@ private void drawJoin(float pdx, float pdy,
this.smx = mx;
this.smy = my;
}
prev = DRAWING_OP_TO;
} else if (rdrCtx.isFirstSegment) {
// Precision on isCW is causing instabilities with Dasher !
final boolean cw = isCW(pdx, pdy, dx, dy);
Expand All @@ -800,6 +799,7 @@ private void drawJoin(float pdx, float pdy,
// reset trigger to process further joins (normal operations)
rdrCtx.isFirstSegment = true;
}
prev = DRAWING_OP_TO;
}

private int getLineOffsets(final float x1, final float y1,
Expand Down

0 comments on commit 008c026

Please sign in to comment.