Kevin Trometer пре 7 година
родитељ
комит
9fe8dab340
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/ui/view/UnitGraph.java

+ 3 - 3
src/ui/view/UnitGraph.java

@@ -115,11 +115,11 @@ public class UnitGraph extends JPanel implements MouseListener, MouseMotionListe
 
 		// Draw the Vertical Lines
 		g2.setColor(Color.BLACK);
-		for (int i = 0; i <= this.getWidth(); i += 10) {
+		for (int i = 0; i < this.getWidth(); i += 7) {
 			g2.drawLine(i, 0, i, this.getHeight());
 		}
 
-		for (int i = 0; i <= this.getHeight(); i += 5) {
+		for (int i = 0; i < this.getHeight(); i += 7) {
 			g2.drawLine(0, i, this.getWidth(), i);
 		}
 
@@ -350,7 +350,7 @@ public class UnitGraph extends JPanel implements MouseListener, MouseMotionListe
 				for (int i = 0; i < pointList.size(); i++) {
 					if (x < pointList.get(i).getX() && !added) {
 						if (e.getY() <= 0) {
-							pointList.add(i, new Point((int) (x), (int) (0 / scaleY)));
+							pointList.add(i, new Point((int) (x), 0));
 						} else {
 							pointList.add(i, new Point((int) (x), (int) y));
 						}