[Scummvm-cvs-logs] scummvm master -> b45640c47b97c36442d01c35e73b4cae9ad5648e
dhewg
dhewg at wiibrew.org
Wed Apr 6 15:23:28 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b45640c47b ANDROID: Fix off-by-one when clipping mouse coords
Commit: b45640c47b97c36442d01c35e73b4cae9ad5648e
https://github.com/scummvm/scummvm/commit/b45640c47b97c36442d01c35e73b4cae9ad5648e
Author: dhewg (dhewg at wiibrew.org)
Date: 2011-04-06T06:21:31-07:00
Commit Message:
ANDROID: Fix off-by-one when clipping mouse coords
Changed paths:
backends/platform/android/events.cpp
diff --git a/backends/platform/android/events.cpp b/backends/platform/android/events.cpp
index ccb18dd..ed825db 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,
More information about the Scummvm-git-logs
mailing list