Gilian Joosen 10 жил өмнө
parent
commit
95094629f9

+ 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;
     }