From 536692556b9495ac7cbb53e1275ad2e6aadf500b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 22 Sep 2002 16:12:37 +0000 Subject: fixed cursor trail svn-id: r5007 --- backends/sdl/sdl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/sdl') 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); } -- cgit v1.2.3