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:
Max Horn 2003-01-09 18:39:45 +00:00
parent f3f237e647
commit 67cd9bba2c

View File

@ -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) {
if (_mouseCurState.x != x || _mouseCurState.y != y)
SDL_WarpMouse(x * _scaleFactor, y * _scaleFactor);
// set_mouse_pos(x, y);
}
void OSystem_SDL_Common::set_mouse_cursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y) {