diff options
author | dhewg | 2011-04-06 15:21:31 +0200 |
---|---|---|
committer | dhewg | 2011-04-06 15:21:31 +0200 |
commit | b45640c47b97c36442d01c35e73b4cae9ad5648e (patch) | |
tree | 1d9550fff916ff0dba8275531695ccc6298dc22d /backends/platform | |
parent | 430c462031a25f598b3515d9164034c4389b0257 (diff) | |
download | scummvm-rg350-b45640c47b97c36442d01c35e73b4cae9ad5648e.tar.gz scummvm-rg350-b45640c47b97c36442d01c35e73b4cae9ad5648e.tar.bz2 scummvm-rg350-b45640c47b97c36442d01c35e73b4cae9ad5648e.zip |
ANDROID: Fix off-by-one when clipping mouse coords
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, |