Doh! Compile error if there was no X11 shared image support
authorSam Lantinga <slouken@libsdl.org>
Mon, 02 Dec 2002 01:47:03 +0000
changeset 551b0c5a13a4243
parent 550 0ac20b67c2c7
child 552 639d58d32471
Doh! Compile error if there was no X11 shared image support
src/video/x11/SDL_x11image.c
     1.1 --- a/src/video/x11/SDL_x11image.c	Mon Dec 02 01:10:20 2002 +0000
     1.2 +++ b/src/video/x11/SDL_x11image.c	Mon Dec 02 01:47:03 2002 +0000
     1.3 @@ -103,8 +103,9 @@
     1.4  		}
     1.5  		this->UpdateRects = X11_MITSHMUpdate;
     1.6  	}
     1.7 +	if(!use_mitshm)
     1.8  #endif /* not NO_SHARED_MEMORY */
     1.9 -	if(!use_mitshm) {
    1.10 +	{
    1.11  		int bpp;
    1.12  		screen->pixels = malloc(screen->h*screen->pitch);
    1.13  		if ( screen->pixels == NULL ) {