aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android
diff options
context:
space:
mode:
authordhewg2011-02-19 21:55:25 +0100
committerdhewg2011-02-19 23:24:59 +0100
commit6c123974c0537609318583ffe23da386129eb6ea (patch)
treed0e61453ef29e3aad5d762e9674075082a5d4357 /backends/platform/android
parent28dae010fb859b0b42e4f433bc4f72b08c036fbb (diff)
downloadscummvm-rg350-6c123974c0537609318583ffe23da386129eb6ea.tar.gz
scummvm-rg350-6c123974c0537609318583ffe23da386129eb6ea.tar.bz2
scummvm-rg350-6c123974c0537609318583ffe23da386129eb6ea.zip
ANDROID: Fix cursor when hotspot coords > 0
Diffstat (limited to 'backends/platform/android')
-rw-r--r--backends/platform/android/android.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp
index 38bc94eb7f..21f41b5e7f 100644
--- a/backends/platform/android/android.cpp
+++ b/backends/platform/android/android.cpp
@@ -818,10 +818,6 @@ void OSystem_Android::updateScreen() {
if (_show_mouse) {
GLCALL(glPushMatrix());
- GLCALL(glTranslatex(-_mouse_hotspot.x << 16,
- -_mouse_hotspot.y << 16,
- 0));
-
// Scale up ScummVM -> OpenGL (pixel) coordinates
int texwidth, texheight;
@@ -837,6 +833,10 @@ void OSystem_Android::updateScreen() {
xdiv(_egl_surface_height, texheight),
1 << 16));
+ GLCALL(glTranslatex(-_mouse_hotspot.x << 16,
+ -_mouse_hotspot.y << 16,
+ 0));
+
// Note the extra half texel to position the mouse in
// the middle of the x,y square:
const Common::Point& mouse = getEventManager()->getMousePos();