summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-17 19:20:45 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-17 19:20:45 (GMT)
commitdf2d698ed5e6d824b6fb4a50eaaf4ecadf78f65b (patch)
tree43c1e2f4c538fa12f54430731774cdd2053f534f /src
parent80a77f47501336f5d690965a6e8f79f2ef231943 (diff)
downloadpowder-df2d698ed5e6d824b6fb4a50eaaf4ecadf78f65b.zip
powder-df2d698ed5e6d824b6fb4a50eaaf4ecadf78f65b.tar.gz
Fix drawing of lines, rects and fill within the zoom window
Diffstat (limited to 'src')
-rw-r--r--src/game/GameController.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index cf100ea..f289f49 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -241,7 +241,7 @@ void GameController::DrawRect(int toolSelection, ui::Point point1, ui::Point poi
Brush * cBrush = gameModel->GetBrush();
if(!activeTool || !cBrush)
return;
- activeTool->DrawRect(sim, cBrush, point1, point2);
+ activeTool->DrawRect(sim, cBrush, PointTranslate(point1), PointTranslate(point2));
}
void GameController::DrawLine(int toolSelection, ui::Point point1, ui::Point point2)
@@ -251,7 +251,7 @@ void GameController::DrawLine(int toolSelection, ui::Point point1, ui::Point poi
Brush * cBrush = gameModel->GetBrush();
if(!activeTool || !cBrush)
return;
- activeTool->DrawLine(sim, cBrush, point1, point2);
+ activeTool->DrawLine(sim, cBrush, PointTranslate(point1), PointTranslate(point2));
}
void GameController::DrawFill(int toolSelection, ui::Point point)
@@ -261,7 +261,7 @@ void GameController::DrawFill(int toolSelection, ui::Point point)
Brush * cBrush = gameModel->GetBrush();
if(!activeTool || !cBrush)
return;
- activeTool->DrawFill(sim, cBrush, point);
+ activeTool->DrawFill(sim, cBrush, PointTranslate(point));
}
void GameController::DrawPoints(int toolSelection, queue<ui::Point*> & pointQueue)