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 551 b0c5a13a4243
parent 550 0ac20b67c2c7
child 552 639d58d32471
Doh! Compile error if there was no X11 shared image support
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 ) {