mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-26 11:46:54 +00:00
only warp mouse if it actually moved - this is not quite perfect, either, but at least now it works again on OS X
svn-id: r6373
This commit is contained in:
parent
f3f237e647
commit
67cd9bba2c
@ -400,8 +400,8 @@ void OSystem_SDL_Common::set_mouse_pos(int x, int y) {
|
||||
}
|
||||
|
||||
void OSystem_SDL_Common::warp_mouse(int x, int y) {
|
||||
SDL_WarpMouse(x * _scaleFactor, y * _scaleFactor);
|
||||
// set_mouse_pos(x, y);
|
||||
if (_mouseCurState.x != x || _mouseCurState.y != y)
|
||||
SDL_WarpMouse(x * _scaleFactor, y * _scaleFactor);
|
||||
}
|
||||
|
||||
void OSystem_SDL_Common::set_mouse_cursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y) {
|
||||
|
Loading…
Reference in New Issue
Block a user