src/video/x11/SDL_x11modes.c
changeset 10015 d809627808b1
parent 9998 f67cf37e9cd4
child 10019 36f7e8084508
equal deleted inserted replaced
10014:906340c8c820 10015:d809627808b1
   616     }
   616     }
   617 #endif /* SDL_VIDEO_DRIVER_X11_XRANDR */
   617 #endif /* SDL_VIDEO_DRIVER_X11_XRANDR */
   618 
   618 
   619 /* !!! FIXME: eventually remove support for Xinerama and XVidMode (everything below here). */
   619 /* !!! FIXME: eventually remove support for Xinerama and XVidMode (everything below here). */
   620 
   620 
       
   621     /* This is a workaround for some apps (UnrealEngine4, for example) until
       
   622        we sort out the ramifications of removing XVidMode support outright.
       
   623        This block should be removed with the XVidMode support. */
       
   624     {
       
   625         const char *env = SDL_GetHint("SDL_VIDEO_X11_REQUIRE_XRANDR");
       
   626         if (env && SDL_atoi(env)) {
       
   627             #if SDL_VIDEO_DRIVER_X11_XRANDR
       
   628             return SDL_SetError("XRandR support is required but not available");
       
   629             #else
       
   630             return SDL_SetError("XRandR support is required but not built into SDL!");
       
   631             #endif
       
   632         }
       
   633     }
       
   634 
   621 #if SDL_VIDEO_DRIVER_X11_XINERAMA
   635 #if SDL_VIDEO_DRIVER_X11_XINERAMA
   622     /* Query Xinerama extention
   636     /* Query Xinerama extention
   623      * NOTE: This works with Nvidia Twinview correctly, but you need version 302.17 (released on June 2012)
   637      * NOTE: This works with Nvidia Twinview correctly, but you need version 302.17 (released on June 2012)
   624      *       or newer of the Nvidia binary drivers
   638      *       or newer of the Nvidia binary drivers
   625      */
   639      */