Skip to content

Commit

Permalink
Fixed spot where SDL was assuming that two displays having the same o…
Browse files Browse the repository at this point in the history
…rigin 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.)
  • Loading branch information
slouken committed Nov 8, 2013
1 parent 95c67ed commit 493fadd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/x11/SDL_x11modes.c
Expand Up @@ -552,7 +552,8 @@ X11_InitModes(_THIS)
in all cases. Anybody want to give this some love?
*/
crtc = X11_XRRGetCrtcInfo(data->display, res, output_info->crtc);
if (!crtc || crtc->x != displaydata->x || crtc->y != displaydata->y) {
if (!crtc || crtc->x != displaydata->x || crtc->y != displaydata->y ||
crtc->width != mode.w || crtc->height != mode.h) {
X11_XRRFreeOutputInfo(output_info);
X11_XRRFreeCrtcInfo(crtc);
continue;
Expand Down

0 comments on commit 493fadd

Please sign in to comment.