Doh! Compile error if there was no X11 shared image support

This commit is contained in:
Sam Lantinga 2002-12-02 01:47:03 +00:00
parent 918f1dc76c
commit 1ab4ea9aa8

View File

@ -103,8 +103,9 @@ int X11_SetupImage(_THIS, SDL_Surface *screen)
}
this->UpdateRects = X11_MITSHMUpdate;
}
if(!use_mitshm)
#endif /* not NO_SHARED_MEMORY */
if(!use_mitshm) {
{
int bpp;
screen->pixels = malloc(screen->h*screen->pitch);
if ( screen->pixels == NULL ) {