diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-06 23:51:14 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-06 23:51:14 (GMT) |
| commit | 58fa3dd539ad0ee7ebb44ec68515bdc22956c095 (patch) | |
| tree | 92c771e3c5f06d5750aa7ee4abb575ae1ed36327 /src/game/GameController.cpp | |
| parent | 76477e1b46b5ca46ba6ddd42ad9a533c86c29e5d (diff) | |
| download | powder-58fa3dd539ad0ee7ebb44ec68515bdc22956c095.zip powder-58fa3dd539ad0ee7ebb44ec68515bdc22956c095.tar.gz | |
Fix some off-by-one mouse clamping issues
Diffstat (limited to 'src/game/GameController.cpp')
| -rw-r--r-- | src/game/GameController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp index aecdeaf..59e1e34 100644 --- a/src/game/GameController.cpp +++ b/src/game/GameController.cpp @@ -341,7 +341,7 @@ ui::Point GameController::PointTranslate(ui::Point point) if(point.X >= XRES) point.X = XRES-1; if(point.Y >= YRES) - point.Y = YRES+1; + point.Y = YRES-1; if(point.Y < 0) point.Y = 0; if(point.X < 0) |
