We probably want to still do this for fullscreen surfaces, since we may be SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Fri, 29 Feb 2008 14:01:45 +0000
branchSDL-1.2
changeset 4142 4433ef2a1802
parent 4141 8b10a6efad41
child 4143 73e7e7f5b5a1
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.
src/video/SDL_video.c
--- 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);
+	}
 }
 
 /*