aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/sdl/sdl.cpp4
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);
}