From a3f0f38eabea89d15396d6284c1276581e817ab7 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 29 Feb 2008 14:01:45 +0000 Subject: [PATCH] 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 36fcc9a04..54d31ae6d 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -503,6 +503,9 @@ static void SDL_ClearSurface(SDL_Surface *surface) SDL_Flip(surface); SDL_FillRect(surface, NULL, black); } + if (surface->flags&SDL_FULLSCREEN) { + SDL_Flip(surface); + } } /*