changeset 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 0ac20b67c2c7
children 639d58d32471
files src/video/x11/SDL_x11image.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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 ) {