summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 0d561a3..163c402 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)