XVidMode only works on the screen at the origin
authorSam Lantinga <slouken@libsdl.org>
Sat, 06 Oct 2012 10:53:47 -0700
changeset 6564 fa0c355cbcdd
parent 6562 c52863165594
child 6565 1f3c0df426dc
XVidMode only works on the screen at the origin
src/video/x11/SDL_x11modes.c
--- a/src/video/x11/SDL_x11modes.c	Fri Oct 05 22:43:00 2012 -0400
+++ b/src/video/x11/SDL_x11modes.c	Sat Oct 06 10:53:47 2012 -0700
@@ -567,7 +567,9 @@
 #if SDL_VIDEO_DRIVER_X11_XVIDMODE
         if (!displaydata->use_xrandr &&
 #if SDL_VIDEO_DRIVER_X11_XINERAMA
-            (!displaydata->use_xinerama || displaydata->xinerama_info.screen_number == 0) &&
+            /* XVidMode only works on the screen at the origin */
+            (!displaydata->use_xinerama ||
+             (displaydata->x == 0 && displaydata->y == 0)) &&
 #endif
             use_vidmode) {
             displaydata->use_vidmode = use_vidmode;