summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video/sdl_v.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp
index d22ad512e..663de4ebf 100644
--- a/src/video/sdl_v.cpp
+++ b/src/video/sdl_v.cpp
@@ -473,6 +473,13 @@ static int PollEvent()
CreateMainSurface(w, h);
break;
}
+ case SDL_VIDEOEXPOSE: {
+ /* Force a redraw of the entire screen. Note
+ * that SDL 1.2 seems to do this automatically
+ * in most cases, but 1.3 / 2.0 does not. */
+ _num_dirty_rects = MAX_DIRTY_RECTS + 1;
+ break;
+ }
}
return -1;
}