Skip to content

Commit

Permalink
Fixed compile error if there is no X11 shared memory support.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 7, 2002
1 parent b0f14c3 commit 77a9ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11video.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 77a9ab7

Please sign in to comment.