src/video/x11/SDL_x11modes.c
changeset 6027 56185b574d61
parent 5535 96594ac5fd1a
child 6138 4c64952a58fb
     1.1 --- a/src/video/x11/SDL_x11modes.c	Mon Oct 24 12:07:41 2011 -0400
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Mon Oct 24 15:33:58 2011 -0400
     1.3 @@ -200,6 +200,8 @@
     1.4  static SDL_bool
     1.5  CheckXinerama(Display * display, int *major, int *minor)
     1.6  {
     1.7 +    int event_base = 0;
     1.8 +    int error_base = 0;
     1.9      const char *env;
    1.10  
    1.11      /* Default the extension not available */
    1.12 @@ -216,7 +218,8 @@
    1.13      }
    1.14  
    1.15      /* Query the extension version */
    1.16 -    if (!XineramaQueryExtension(display, major, minor) ||
    1.17 +    if (!XineramaQueryExtension(display, &event_base, &error_base) ||
    1.18 +        !XineramaQueryVersion(display, major, minor) ||
    1.19          !XineramaIsActive(display)) {
    1.20          return SDL_FALSE;
    1.21      }