# HG changeset patch # User Sam Lantinga # Date 1038793623 0 # Node ID b0c5a13a4243bdbf0ec5e6c69e25aa9ee3359abf # Parent 0ac20b67c2c7690afbd26e325c2529ad28589d3b Doh! Compile error if there was no X11 shared image support diff -r 0ac20b67c2c7 -r b0c5a13a4243 src/video/x11/SDL_x11image.c --- a/src/video/x11/SDL_x11image.c Mon Dec 02 01:10:20 2002 +0000 +++ b/src/video/x11/SDL_x11image.c Mon Dec 02 01:47:03 2002 +0000 @@ -103,8 +103,9 @@ } 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 ) {