From df2d698ed5e6d824b6fb4a50eaaf4ecadf78f65b Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 17 Apr 2012 20:20:45 +0100 Subject: Fix drawing of lines, rects and fill within the zoom window 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 & pointQueue) -- cgit v0.9.2-21-gd62e