comparison src/video/SDL_video.c @ 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 fc69b552ee32
children a1b03ba2fcd0
comparison
equal deleted inserted replaced
4141:8b10a6efad41 4142:4433ef2a1802
500 black = SDL_MapRGB(surface->format, 0, 0, 0); 500 black = SDL_MapRGB(surface->format, 0, 0, 0);
501 SDL_FillRect(surface, NULL, black); 501 SDL_FillRect(surface, NULL, black);
502 if ((surface->flags&SDL_HWSURFACE) && (surface->flags&SDL_DOUBLEBUF)) { 502 if ((surface->flags&SDL_HWSURFACE) && (surface->flags&SDL_DOUBLEBUF)) {
503 SDL_Flip(surface); 503 SDL_Flip(surface);
504 SDL_FillRect(surface, NULL, black); 504 SDL_FillRect(surface, NULL, black);
505 }
506 if (surface->flags&SDL_FULLSCREEN) {
507 SDL_Flip(surface);
505 } 508 }
506 } 509 }
507 510
508 /* 511 /*
509 * Create a shadow surface suitable for fooling the app. :-) 512 * Create a shadow surface suitable for fooling the app. :-)