Skip to content
Permalink
Browse files

Fixed compile error if there is no X11 shared memory support.

  • Loading branch information
slouken committed Dec 7, 2002
1 parent b0f14c3 commit 77a9ab720ebe265fbe02e1470daf6241f7aab188
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit 77a9ab7

Please sign in to comment.