changeset 4142:4433ef2a1802 SDL-1.2

We probably want to still do this for fullscreen surfaces, since we may be clearing the edges of a centered video mode or garbage left over from a mode switch.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 29 Feb 2008 14:01:45 +0000
parents 8b10a6efad41
children 73e7e7f5b5a1
files src/video/SDL_video.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_video.c	Fri Feb 29 13:58:37 2008 +0000
+++ b/src/video/SDL_video.c	Fri Feb 29 14:01:45 2008 +0000
@@ -503,6 +503,9 @@
 		SDL_Flip(surface);
 		SDL_FillRect(surface, NULL, black);
 	}
+	if (surface->flags&SDL_FULLSCREEN) {
+		SDL_Flip(surface);
+	}
 }
 
 /*