ANDROID: Fix cursor when hotspot coords > 0
This commit is contained in:
parent
28dae010fb
commit
6c123974c0
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue