From 62195dc2a32962d107736da05295e300eb9f7a8d Mon Sep 17 00:00:00 2001 From: jacob1 Date: Tue, 15 Jan 2013 11:10:30 -0500 Subject: [PATCH] allow removing zoom tool when shift drawing lines --- src/game/GameView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 070877889..a037d05ba 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -1018,7 +1018,7 @@ void GameView::OnMouseDown(int x, int y, unsigned button) c->HistorySnapshot(); if(drawMode == DrawRect || drawMode == DrawLine) { - drawPoint1 = ui::Point(x, y); + drawPoint1 = c->PointTranslate(ui::Point(x, y)); } if(drawMode == DrawPoints) { @@ -1288,7 +1288,8 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool } else { - isMouseDown = false; + if (drawMode != DrawLine) + isMouseDown = false; zoomCursorFixed = false; c->SetZoomEnabled(true); }