src/video/x11/SDL_x11video.c
changeset 556 08588ee79a67
parent 499 f480ecd70499
child 769 b8d311d90021
equal deleted inserted replaced
555:2536446a92de 556:08588ee79a67
   407 	XIO_handler = XSetIOErrorHandler(xio_errhandler);
   407 	XIO_handler = XSetIOErrorHandler(xio_errhandler);
   408 
   408 
   409 	/* use default screen (from $DISPLAY) */
   409 	/* use default screen (from $DISPLAY) */
   410 	SDL_Screen = DefaultScreen(SDL_Display);
   410 	SDL_Screen = DefaultScreen(SDL_Display);
   411 
   411 
   412 	use_mitshm = 0;
       
   413 #ifndef NO_SHARED_MEMORY
   412 #ifndef NO_SHARED_MEMORY
   414 	/* Check for MIT shared memory extension */
   413 	/* Check for MIT shared memory extension */
       
   414 	use_mitshm = 0;
   415 	if ( local_X11 ) {
   415 	if ( local_X11 ) {
   416 		use_mitshm = XShmQueryExtension(SDL_Display);
   416 		use_mitshm = XShmQueryExtension(SDL_Display);
   417 	}
   417 	}
   418 #endif /* NO_SHARED_MEMORY */
   418 #endif /* NO_SHARED_MEMORY */
   419 
   419