Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Only get desktop modes from Xinerama if we can't use XRandR (fix #1956)
Browse files Browse the repository at this point in the history
  • Loading branch information
sulix committed Jul 13, 2013
1 parent 0890931 commit af63bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/x11/SDL_x11modes.c
Expand Up @@ -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;
Expand Down

0 comments on commit af63bb8

Please sign in to comment.