ANDROID: Fix cursor when hotspot coords > 0

This commit is contained in:
dhewg 2011-02-19 21:55:25 +01:00
parent 28dae010fb
commit 6c123974c0

View file

@ -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();