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

Commit

Permalink
XVidMode only works on the screen at the origin
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 6, 2012
1 parent 78714d9 commit e5ed580
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video/x11/SDL_x11modes.c
Expand Up @@ -567,7 +567,9 @@ X11_InitModes(_THIS)
#if SDL_VIDEO_DRIVER_X11_XVIDMODE
if (!displaydata->use_xrandr &&
#if SDL_VIDEO_DRIVER_X11_XINERAMA
(!displaydata->use_xinerama || displaydata->xinerama_info.screen_number == 0) &&
/* XVidMode only works on the screen at the origin */
(!displaydata->use_xinerama ||
(displaydata->x == 0 && displaydata->y == 0)) &&
#endif
use_vidmode) {
displaydata->use_vidmode = use_vidmode;
Expand Down

0 comments on commit e5ed580

Please sign in to comment.