src/video/x11/SDL_x11modes.c
changeset 6027 56185b574d61
parent 5535 96594ac5fd1a
child 6138 4c64952a58fb
--- a/src/video/x11/SDL_x11modes.c	Mon Oct 24 12:07:41 2011 -0400
+++ b/src/video/x11/SDL_x11modes.c	Mon Oct 24 15:33:58 2011 -0400
@@ -200,6 +200,8 @@
 static SDL_bool
 CheckXinerama(Display * display, int *major, int *minor)
 {
+    int event_base = 0;
+    int error_base = 0;
     const char *env;
 
     /* Default the extension not available */
@@ -216,7 +218,8 @@
     }
 
     /* Query the extension version */
-    if (!XineramaQueryExtension(display, major, minor) ||
+    if (!XineramaQueryExtension(display, &event_base, &error_base) ||
+        !XineramaQueryVersion(display, major, minor) ||
         !XineramaIsActive(display)) {
         return SDL_FALSE;
     }