Gilian Joosen 10 лет назад
Родитель
Сommit
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;
     }