diff options
author | Max Horn | 2003-01-09 18:39:45 +0000 |
---|---|---|
committer | Max Horn | 2003-01-09 18:39:45 +0000 |
commit | 67cd9bba2c4b072c4eed6e59712eb62a1dfa51b7 (patch) | |
tree | 0d3f54a80c2e26bf8703cab790ba6aed6fb4f805 /backends/sdl | |
parent | f3f237e647f3491be26764ac1e15d10b1f4399e7 (diff) | |
download | scummvm-rg350-67cd9bba2c4b072c4eed6e59712eb62a1dfa51b7.tar.gz scummvm-rg350-67cd9bba2c4b072c4eed6e59712eb62a1dfa51b7.tar.bz2 scummvm-rg350-67cd9bba2c4b072c4eed6e59712eb62a1dfa51b7.zip |
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
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/sdl-common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp index c83bba117b..bbbc3b99fe 100644 --- a/backends/sdl/sdl-common.cpp +++ b/backends/sdl/sdl-common.cpp @@ -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) { |