Only get desktop modes from Xinerama if we can't use XRandR (fix #1956)

This commit is contained in:
David Gow 2013-07-13 11:06:34 +08:00
parent 228bafa134
commit 9102ff84ca

View file

@ -704,9 +704,9 @@ X11_GetDisplayModes(_THIS, SDL_VideoDisplay * sdl_display)
mode.driverdata = modedata;
SDL_AddDisplayMode(sdl_display, &mode);
}
else
else if (!data->use_xrandr)
{
/* Add the current mode of each monitor otherwise */
/* Add the current mode of each monitor otherwise if we can't get them from xrandr */
mode.w = data->xinerama_info.width;
mode.h = data->xinerama_info.height;
mode.refresh_rate = 0;