Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information
sulix committed Jul 13, 2013
1 parent 0890931 commit af63bb8f4222e419298301811a8931ff5a43515b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/video/x11/SDL_x11modes.c
@@ -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;

0 comments on commit af63bb8

Please sign in to comment.