mirror of
https://github.com/yawut/SDL.git
synced 2026-06-21 11:59:49 -05:00
Fixed video crash on older XFree86 servers
This commit is contained in:
parent
af05e360a9
commit
57e423c4e5
|
|
@ -98,7 +98,7 @@ int X11_SetVidModeGamma(_THIS, float red, float green, float blue)
|
|||
static int X11_GetGammaNoLock(_THIS, float *red, float *green, float *blue)
|
||||
{
|
||||
#ifdef XFREE86_VMGAMMA
|
||||
if (use_vidmode >= 2) {
|
||||
if (use_vidmode >= 200) {
|
||||
SDL_NAME(XF86VidModeGamma) gamma;
|
||||
if (SDL_NAME(XF86VidModeGetGamma)(SDL_Display, SDL_Screen, &gamma)) {
|
||||
*red = gamma.red;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user