diff src/video/x11/SDL_x11image.c @ 551:b0c5a13a4243

Doh! Compile error if there was no X11 shared image support
author Sam Lantinga <slouken@libsdl.org>
date Mon, 02 Dec 2002 01:47:03 +0000
parents f6ffac90895c
children 6399f4e90211
line wrap: on
line diff
--- 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 ) {