Skip to content

Commit

Permalink
Doh! Compile error if there was no X11 shared image support
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 2, 2002
1 parent 2818209 commit 9ae152e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/x11/SDL_x11image.c
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 9ae152e

Please sign in to comment.