diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/platform/android/android.cpp | 8 |
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(); |