From 45b275be0db712a376df5820f2e9739145acb3bc Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 14 Aug 2012 16:04:38 +0100 Subject: [PATCH] Reset drawing state when placing stamps --- src/game/GameView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 0d561a3e3..163c40296 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -1311,6 +1311,8 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool c->LoadStamp(); selectPoint2 = ui::Point(-1, -1); selectPoint1 = selectPoint2; + isMouseDown = false; + drawMode = DrawPoints; break; case 'k': selectPoint2 = ui::Point(-1, -1); @@ -1378,6 +1380,8 @@ void GameView::OnBlur() disableAltBehaviour(); disableCtrlBehaviour(); disableShiftBehaviour(); + isMouseDown = false; + drawMode = DrawPoints; } void GameView::OnTick(float dt)