diff 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
line wrap: on
line diff
--- 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;