From 6c123974c0537609318583ffe23da386129eb6ea Mon Sep 17 00:00:00 2001 From: dhewg Date: Sat, 19 Feb 2011 21:55:25 +0100 Subject: ANDROID: Fix cursor when hotspot coords > 0 --- backends/platform/android/android.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'backends/platform/android') 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(); -- cgit v1.2.3