Skip to content

Commit

Permalink
rounded values
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Jan 26, 2019
1 parent 3045b6a commit aaeec17
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ public void paint(Graphics g) {
}

for (int i = 1; i < valuesX.size() && i < valuesY.size(); i++) {
double x = valuesX.get(i);
double lx = valuesX.get(i - 1);
double y = valuesY.get(i);
double ly = valuesY.get(i - 1);
double x = Math.round(valuesX.get(i));
double lx = Math.round(valuesX.get(i - 1));
double y = Math.round(valuesY.get(i));
double ly = Math.round(valuesY.get(i - 1));
g2D.drawLine((int) lx, (int) ly, (int) x, (int) y);
}
if (cycleXpos != -1 && cycleYpos != -1 && valuesX.size() > 1 && valuesY.size() > 1) {
Expand Down

0 comments on commit aaeec17

Please sign in to comment.