aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl/sdl.cpp
diff options
context:
space:
mode:
authorMax Horn2002-10-21 22:25:52 +0000
committerMax Horn2002-10-21 22:25:52 +0000
commit1c999792f947bf983b4d08622026eb620f5b892c (patch)
tree1fa2851c8d4b5be854cdeff982e927bfc682d74a /backends/sdl/sdl.cpp
parent4b8aa277f7c6de45090b59b193475229346f30bd (diff)
downloadscummvm-rg350-1c999792f947bf983b4d08622026eb620f5b892c.tar.gz
scummvm-rg350-1c999792f947bf983b4d08622026eb620f5b892c.tar.bz2
scummvm-rg350-1c999792f947bf983b4d08622026eb620f5b892c.zip
fixed stupid bug by me, again (see also 9th of May)
svn-id: r5225
Diffstat (limited to 'backends/sdl/sdl.cpp')
-rw-r--r--backends/sdl/sdl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp
index 8fb6df31b9..4226a41ed5 100644
--- a/backends/sdl/sdl.cpp
+++ b/backends/sdl/sdl.cpp
@@ -137,6 +137,9 @@ void OSystem_SDL_Normal::draw_mouse() {
if (SDL_LockSurface(sdl_tmpscreen) == -1)
error("SDL_LockSurface failed: %s.\n", SDL_GetError());
+ // Mark as dirty
+ add_dirty_rect(x, y, w, h);
+
dst = (uint16 *)sdl_tmpscreen->pixels + (y+1) * TMP_SCREEN_WIDTH + (x+1);
while (h > 0) {
int width = w;
@@ -156,9 +159,6 @@ void OSystem_SDL_Normal::draw_mouse() {
SDL_UnlockSurface(sdl_tmpscreen);
- // Mark as dirty
- add_dirty_rect(x, y, w, h);
-
// Finally, set the flag to indicate the mouse has been drawn
_mouseDrawn = true;
}