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 41424433ef2a1802
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
     1.1 --- a/src/video/SDL_video.c	Fri Feb 29 13:58:37 2008 +0000
     1.2 +++ b/src/video/SDL_video.c	Fri Feb 29 14:01:45 2008 +0000
     1.3 @@ -503,6 +503,9 @@
     1.4  		SDL_Flip(surface);
     1.5  		SDL_FillRect(surface, NULL, black);
     1.6  	}
     1.7 +	if (surface->flags&SDL_FULLSCREEN) {
     1.8 +		SDL_Flip(surface);
     1.9 +	}
    1.10  }
    1.11  
    1.12  /*