comparison src/video/x11/SDL_x11gamma.c @ 445:98d778ed4abf

Fixed video crash on older XFree86 servers
author Sam Lantinga <slouken@libsdl.org>
date Sun, 18 Aug 2002 18:33:02 +0000
parents f6ffac90895c
children b8d311d90021
comparison
equal deleted inserted replaced
444:406b12a17b15 445:98d778ed4abf
96 } 96 }
97 97
98 static int X11_GetGammaNoLock(_THIS, float *red, float *green, float *blue) 98 static int X11_GetGammaNoLock(_THIS, float *red, float *green, float *blue)
99 { 99 {
100 #ifdef XFREE86_VMGAMMA 100 #ifdef XFREE86_VMGAMMA
101 if (use_vidmode >= 2) { 101 if (use_vidmode >= 200) {
102 SDL_NAME(XF86VidModeGamma) gamma; 102 SDL_NAME(XF86VidModeGamma) gamma;
103 if (SDL_NAME(XF86VidModeGetGamma)(SDL_Display, SDL_Screen, &gamma)) { 103 if (SDL_NAME(XF86VidModeGetGamma)(SDL_Display, SDL_Screen, &gamma)) {
104 *red = gamma.red; 104 *red = gamma.red;
105 *green = gamma.green; 105 *green = gamma.green;
106 *blue = gamma.blue; 106 *blue = gamma.blue;