fixed cursor trail

svn-id: r5007
This commit is contained in:
Max Horn 2002-09-22 16:12:37 +00:00
parent eef7b30955
commit 536692556b

View file

@ -159,7 +159,7 @@ void OSystem_SDL_Normal::draw_mouse() {
SDL_UnlockSurface(sdl_tmpscreen); SDL_UnlockSurface(sdl_tmpscreen);
// Mark as dirty // 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 // Finally, set the flag to indicate the mouse has been drawn
_mouse_drawn = true; _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); SDL_UnlockSurface(sdl_tmpscreen);
} }