From 77a9ab720ebe265fbe02e1470daf6241f7aab188 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 7 Dec 2002 06:51:03 +0000 Subject: [PATCH] Fixed compile error if there is no X11 shared memory support. --- src/video/x11/SDL_x11video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11video.c b/src/video/x11/SDL_x11video.c index 64e0948fc..ab7f13548 100644 --- a/src/video/x11/SDL_x11video.c +++ b/src/video/x11/SDL_x11video.c @@ -409,9 +409,9 @@ static int X11_VideoInit(_THIS, SDL_PixelFormat *vformat) /* 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); }