diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-14 15:04:38 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-14 15:04:38 (GMT) |
| commit | 45b275be0db712a376df5820f2e9739145acb3bc (patch) | |
| tree | f02df738bf56eb91fe307da6b205d0b734623f90 /src/game/GameView.cpp | |
| parent | 7ccb7e53fe941a4b076bc4856dfba0c0476af249 (diff) | |
| download | powder-45b275be0db712a376df5820f2e9739145acb3bc.zip powder-45b275be0db712a376df5820f2e9739145acb3bc.tar.gz | |
Reset drawing state when placing stamps
Diffstat (limited to 'src/game/GameView.cpp')
| -rw-r--r-- | src/game/GameView.cpp | 4 |
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) |
