Only get desktop modes from Xinerama if we can't use XRandR (fix #1956)
authorDavid Gow <david@ingeniumdigital.com>
Sat, 13 Jul 2013 11:06:34 +0800
changeset 74310fc94f315dac
parent 7430 f204394628db
child 7432 58908b180ebd
Only get desktop modes from Xinerama if we can't use XRandR (fix #1956)
src/video/x11/SDL_x11modes.c
     1.1 --- a/src/video/x11/SDL_x11modes.c	Fri Jul 12 23:45:12 2013 -0700
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Sat Jul 13 11:06:34 2013 +0800
     1.3 @@ -704,9 +704,9 @@
     1.4              mode.driverdata = modedata;
     1.5              SDL_AddDisplayMode(sdl_display, &mode);
     1.6          }
     1.7 -        else
     1.8 +        else if (!data->use_xrandr)
     1.9          {
    1.10 -            /* Add the current mode of each monitor otherwise */
    1.11 +            /* Add the current mode of each monitor otherwise if we can't get them from xrandr */
    1.12              mode.w = data->xinerama_info.width;
    1.13              mode.h = data->xinerama_info.height;
    1.14              mode.refresh_rate = 0;