From 9ae152e1a5d85e32086ac4f566175ac454619b26 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 2 Dec 2002 01:47:03 +0000 Subject: [PATCH] Doh! Compile error if there was no X11 shared image support --- src/video/x11/SDL_x11image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11image.c b/src/video/x11/SDL_x11image.c index 6928fa359..51b184355 100644 --- a/src/video/x11/SDL_x11image.c +++ b/src/video/x11/SDL_x11image.c @@ -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 ) {