diff options
author | Max Horn | 2002-09-22 16:12:37 +0000 |
---|---|---|
committer | Max Horn | 2002-09-22 16:12:37 +0000 |
commit | 536692556b9495ac7cbb53e1275ad2e6aadf500b (patch) | |
tree | da674ea9e771a0a18d7e1cc3a519c91400a9d1f7 /backends/sdl/sdl.cpp | |
parent | eef7b309557078b49fc18bd2fdcdf30121e7e871 (diff) | |
download | scummvm-rg350-536692556b9495ac7cbb53e1275ad2e6aadf500b.tar.gz scummvm-rg350-536692556b9495ac7cbb53e1275ad2e6aadf500b.tar.bz2 scummvm-rg350-536692556b9495ac7cbb53e1275ad2e6aadf500b.zip |
fixed cursor trail
svn-id: r5007
Diffstat (limited to 'backends/sdl/sdl.cpp')
-rw-r--r-- | backends/sdl/sdl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index 59b2302ed0..cf8c39b0a4 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -159,7 +159,7 @@ void OSystem_SDL_Normal::draw_mouse() { SDL_UnlockSurface(sdl_tmpscreen); // Mark as dirty - add_dirty_rect(x, y, w, h); + add_dirty_rect(x-1, y-1, w, h); // Finally, set the flag to indicate the mouse has been drawn _mouse_drawn = true; @@ -194,7 +194,7 @@ void OSystem_SDL_Normal::undraw_mouse() { } } - add_dirty_rect(old_mouse_x, old_mouse_y, old_mouse_w, old_mouse_h); + add_dirty_rect(old_mouse_x-1, old_mouse_y-1, old_mouse_w, old_mouse_h); SDL_UnlockSurface(sdl_tmpscreen); } |