From df2d698ed5e6d824b6fb4a50eaaf4ecadf78f65b Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 17 Apr 2012 20:20:45 +0100 Subject: [PATCH] Fix drawing of lines, rects and fill within the zoom window --- src/game/GameController.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp index cf100eadd..f289f4939 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 & pointQueue)