Fixed compile error if there is no X11 shared memory support.
authorSam Lantinga <slouken@libsdl.org>
Sat, 07 Dec 2002 06:51:03 +0000
changeset 556 08588ee79a67
parent 555 2536446a92de
child 557 0ce5a68278fd
Fixed compile error if there is no X11 shared memory support.
src/video/x11/SDL_x11video.c
--- a/src/video/x11/SDL_x11video.c	Sat Dec 07 06:48:49 2002 +0000
+++ b/src/video/x11/SDL_x11video.c	Sat Dec 07 06:51:03 2002 +0000
@@ -409,9 +409,9 @@
 	/* use default screen (from $DISPLAY) */
 	SDL_Screen = DefaultScreen(SDL_Display);
 
-	use_mitshm = 0;
 #ifndef NO_SHARED_MEMORY
 	/* Check for MIT shared memory extension */
+	use_mitshm = 0;
 	if ( local_X11 ) {
 		use_mitshm = XShmQueryExtension(SDL_Display);
 	}