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