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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue