Gilian Joosen пре 10 година
родитељ
комит
95094629f9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/gui/simulator/DrawEngine.java

+ 1 - 1
src/gui/simulator/DrawEngine.java

@@ -54,7 +54,7 @@ public abstract class DrawEngine {
     }
 
     public Point2D.Double getCenter(){
-        Point2D.Double center = new Point2D.Double(x + this.image.getWidth(null) / 2, y + this.image.getHeight(null)/2);
+        Point2D.Double center = new Point2D.Double(x + this.image.getWidth(null)*scale / 2, y + this.image.getHeight(null)*scale/2);
         return center;
     }