summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-05 17:44:53 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-05 17:44:53 (GMT)
commit09c266f25256d25103781e74038fc5265b957459 (patch)
tree185325347e2cb08653651ac95c9330b86a820bae /src/game/GameController.cpp
parent98725dea26857f9caac15ff88aff005dbba80530 (diff)
downloadpowder-09c266f25256d25103781e74038fc5265b957459.zip
powder-09c266f25256d25103781e74038fc5265b957459.tar.gz
Perform pointtranslate (zoom) only in GameView. Fixes point line issue in #175
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index 860c23a..fd64654 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -374,7 +374,7 @@ void GameController::DrawRect(int toolSelection, ui::Point point1, ui::Point poi
if(!activeTool || !cBrush)
return;
activeTool->SetStrength(gameModel->GetToolStrength());
- activeTool->DrawRect(sim, cBrush, PointTranslate(point1), PointTranslate(point2));
+ activeTool->DrawRect(sim, cBrush, point1, point2);
}
void GameController::DrawLine(int toolSelection, ui::Point point1, ui::Point point2)
@@ -386,7 +386,7 @@ void GameController::DrawLine(int toolSelection, ui::Point point1, ui::Point poi
if(!activeTool || !cBrush)
return;
activeTool->SetStrength(gameModel->GetToolStrength());
- activeTool->DrawLine(sim, cBrush, PointTranslate(point1), PointTranslate(point2));
+ activeTool->DrawLine(sim, cBrush, point1, point2);
}
void GameController::DrawFill(int toolSelection, ui::Point point)
@@ -398,7 +398,7 @@ void GameController::DrawFill(int toolSelection, ui::Point point)
if(!activeTool || !cBrush)
return;
activeTool->SetStrength(gameModel->GetToolStrength());
- activeTool->DrawFill(sim, cBrush, PointTranslate(point));
+ activeTool->DrawFill(sim, cBrush, point);
}
void GameController::DrawPoints(int toolSelection, queue<ui::Point*> & pointQueue)
@@ -427,7 +427,7 @@ void GameController::DrawPoints(int toolSelection, queue<ui::Point*> & pointQueu
bool first = true;
while(!pointQueue.empty())
{
- ui::Point fPoint = PointTranslate(*pointQueue.front());
+ ui::Point fPoint = *pointQueue.front();
delete pointQueue.front();
pointQueue.pop();
if(!first)
@@ -480,7 +480,7 @@ void GameController::ToolClick(int toolSelection, ui::Point point)
Brush * cBrush = gameModel->GetBrush();
if(!activeTool || !cBrush)
return;
- activeTool->Click(sim, cBrush, PointTranslate(point));
+ activeTool->Click(sim, cBrush, point);
}
void GameController::StampRegion(ui::Point point1, ui::Point point2)