[Scummvm-cvs-logs] scummvm master -> 4b6e5e7b06c758d2c6738efaff5dceaaacfed214

dhewg dhewg at wiibrew.org
Sun Mar 13 23:47:09 CET 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:
4b6e5e7b06 ANDROID: Clip mouse coordinates


Commit: 4b6e5e7b06c758d2c6738efaff5dceaaacfed214
    https://github.com/scummvm/scummvm/commit/4b6e5e7b06c758d2c6738efaff5dceaaacfed214
Author: dhewg (dhewg at wiibrew.org)
Date: 2011-03-13T15:45:52-07:00

Commit Message:
ANDROID: Clip mouse coordinates

Changed paths:
    backends/platform/android/android.cpp



diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp
index 9374a87..4d83dd7 100644
--- a/backends/platform/android/android.cpp
+++ b/backends/platform/android/android.cpp
@@ -526,6 +526,11 @@ bool OSystem_Android::pollEvent(Common::Event &event) {
 										r.height());
 
 				event.mouse.x -= _shake_offset;
+
+				event.mouse.x = CLIP(event.mouse.x, int16(0),
+										int16(_game_texture->width()));
+				event.mouse.y = CLIP(event.mouse.y, int16(0),
+										int16(_game_texture->height()));
 			}
 		}
 		break;






More information about the Scummvm-git-logs mailing list