Kind of fixed one random crash reported by slvn

This commit is contained in:
pelya
2012-08-15 11:58:06 +03:00
parent 046e36acd3
commit 4a5d0d8880
2 changed files with 3 additions and 1 deletions

View File

@@ -504,6 +504,7 @@ static int SDL_GetVideoMode (int *w, int *h, int *BitsPerPixel, Uint32 flags)
/* This should probably go somewhere else -- like SDL_surface.c */
static void SDL_ClearSurface(SDL_Surface *surface)
{
#ifndef __ANDROID__
Uint32 black;
black = SDL_MapRGB(surface->format, 0, 0, 0);
@@ -515,6 +516,7 @@ static void SDL_ClearSurface(SDL_Surface *surface)
if (surface->flags&SDL_FULLSCREEN) {
SDL_Flip(surface);
}
#endif
}
/*