diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-14 14:27:30 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-14 14:27:30 (GMT) |
| commit | 02696b1cbeaa718eb29f2552992d68b1915c81b5 (patch) | |
| tree | 93082d700ad77317088c272db7a5cd7b925ed23c /src/game/GameView.cpp | |
| parent | ef6c4e91ae85e4a47408f92d4cfab9d9668c651d (diff) | |
| download | powder-02696b1cbeaa718eb29f2552992d68b1915c81b5.zip powder-02696b1cbeaa718eb29f2552992d68b1915c81b5.tar.gz | |
Snap stamp selection to CELL res, #104
Diffstat (limited to 'src/game/GameView.cpp')
| -rw-r--r-- | src/game/GameView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 80c8772..8b553b9 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -953,7 +953,7 @@ void GameView::OnMouseMove(int x, int y, int dx, int dy) if(selectMode==PlaceSave) selectPoint1 = ui::Point(x, y); if(selectPoint1.X!=-1) - selectPoint2 = ui::Point(x, y); + selectPoint2 = c->NormaliseBlockCoord(ui::Point(x, y)); return; } currentMouse = ui::Point(x, y); @@ -970,7 +970,7 @@ void GameView::OnMouseDown(int x, int y, unsigned button) { if(button==BUTTON_LEFT) { - selectPoint1 = ui::Point(x, y); + selectPoint1 = c->NormaliseBlockCoord(ui::Point(x, y)); selectPoint2 = selectPoint1; } return; |
