Fixed spot where SDL was assuming that two displays having the same origin means they're the same display. Changed it to check for the same extents instead.
authorSam Lantinga <slouken@libsdl.org>
Fri, 08 Nov 2013 14:04:35 -0800
changeset 7914a391318fa60f
parent 7913 44dc7926f62d
child 7915 86ad156a82ab
Fixed spot where SDL was assuming that two displays having the same origin means they're the same display. Changed it to check for the same extents instead.

(Sam actually wrote this, I'm just reviewing and checking it in.)
src/video/x11/SDL_x11modes.c
     1.1 --- a/src/video/x11/SDL_x11modes.c	Thu Nov 07 19:15:58 2013 -0800
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Fri Nov 08 14:04:35 2013 -0800
     1.3 @@ -552,7 +552,8 @@
     1.4                     in all cases.  Anybody want to give this some love?
     1.5                   */
     1.6                  crtc = X11_XRRGetCrtcInfo(data->display, res, output_info->crtc);
     1.7 -                if (!crtc || crtc->x != displaydata->x || crtc->y != displaydata->y) {
     1.8 +                if (!crtc || crtc->x != displaydata->x || crtc->y != displaydata->y ||
     1.9 +                    crtc->width != mode.w || crtc->height != mode.h) {
    1.10                      X11_XRRFreeOutputInfo(output_info);
    1.11                      X11_XRRFreeCrtcInfo(crtc);
    1.12                      continue;