src/video/x11/SDL_x11modes.c
changeset 6027 56185b574d61
parent 5535 96594ac5fd1a
child 6138 4c64952a58fb
equal deleted inserted replaced
6026:a7142857e885 6027:56185b574d61
   198 
   198 
   199 #if SDL_VIDEO_DRIVER_X11_XINERAMA
   199 #if SDL_VIDEO_DRIVER_X11_XINERAMA
   200 static SDL_bool
   200 static SDL_bool
   201 CheckXinerama(Display * display, int *major, int *minor)
   201 CheckXinerama(Display * display, int *major, int *minor)
   202 {
   202 {
       
   203     int event_base = 0;
       
   204     int error_base = 0;
   203     const char *env;
   205     const char *env;
   204 
   206 
   205     /* Default the extension not available */
   207     /* Default the extension not available */
   206     *major = *minor = 0;
   208     *major = *minor = 0;
   207 
   209 
   214     if (!SDL_X11_HAVE_XINERAMA) {
   216     if (!SDL_X11_HAVE_XINERAMA) {
   215         return SDL_FALSE;
   217         return SDL_FALSE;
   216     }
   218     }
   217 
   219 
   218     /* Query the extension version */
   220     /* Query the extension version */
   219     if (!XineramaQueryExtension(display, major, minor) ||
   221     if (!XineramaQueryExtension(display, &event_base, &error_base) ||
       
   222         !XineramaQueryVersion(display, major, minor) ||
   220         !XineramaIsActive(display)) {
   223         !XineramaIsActive(display)) {
   221         return SDL_FALSE;
   224         return SDL_FALSE;
   222     }
   225     }
   223     return SDL_TRUE;
   226     return SDL_TRUE;
   224 }
   227 }