Fixed video crash on older XFree86 servers
authorSam Lantinga <slouken@libsdl.org>
Sun, 18 Aug 2002 18:33:02 +0000
changeset 445 98d778ed4abf
parent 444 406b12a17b15
child 446 92328a8635fe
Fixed video crash on older XFree86 servers
src/video/x11/SDL_x11gamma.c
--- a/src/video/x11/SDL_x11gamma.c	Sun Aug 18 03:19:59 2002 +0000
+++ b/src/video/x11/SDL_x11gamma.c	Sun Aug 18 18:33:02 2002 +0000
@@ -98,7 +98,7 @@
 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;