Reset drawing state when placing stamps

This commit is contained in:
Simon Robertshaw
2012-08-14 16:04:38 +01:00
parent 7ccb7e53fe
commit 45b275be0d

View File

@@ -1311,6 +1311,8 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
c->LoadStamp(); c->LoadStamp();
selectPoint2 = ui::Point(-1, -1); selectPoint2 = ui::Point(-1, -1);
selectPoint1 = selectPoint2; selectPoint1 = selectPoint2;
isMouseDown = false;
drawMode = DrawPoints;
break; break;
case 'k': case 'k':
selectPoint2 = ui::Point(-1, -1); selectPoint2 = ui::Point(-1, -1);
@@ -1378,6 +1380,8 @@ void GameView::OnBlur()
disableAltBehaviour(); disableAltBehaviour();
disableCtrlBehaviour(); disableCtrlBehaviour();
disableShiftBehaviour(); disableShiftBehaviour();
isMouseDown = false;
drawMode = DrawPoints;
} }
void GameView::OnTick(float dt) void GameView::OnTick(float dt)