comparison src/video/x11/SDL_x11video.c @ 556:08588ee79a67

Fixed compile error if there is no X11 shared memory support.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 07 Dec 2002 06:51:03 +0000
parents f480ecd70499
children b8d311d90021
comparison
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