diff options
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/android/events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/android/events.cpp b/backends/platform/android/events.cpp index ccb18dde89..ed825dbc9c 100644 --- a/backends/platform/android/events.cpp +++ b/backends/platform/android/events.cpp @@ -251,8 +251,8 @@ void OSystem_Android::clipMouse(Common::Point &p) { else tex = _game_texture; - p.x = CLIP(p.x, int16(0), int16(tex->width())); - p.y = CLIP(p.y, int16(0), int16(tex->height())); + p.x = CLIP(p.x, int16(0), int16(tex->width() - 1)); + p.y = CLIP(p.y, int16(0), int16(tex->height() - 1)); } void OSystem_Android::scaleMouse(Common::Point &p, int x, int y, |