src/video/x11/SDL_x11gamma.c
changeset 90 ee1f71c10889
parent 0 74212992fb08
child 100 a1c973c35fef
--- a/src/video/x11/SDL_x11gamma.c	Sat Jul 07 08:03:34 2001 +0000
+++ b/src/video/x11/SDL_x11gamma.c	Sat Jul 07 08:08:42 2001 +0000
@@ -37,7 +37,7 @@
 static int X11_SetGammaNoLock(_THIS, float red, float green, float blue)
 {
 #ifdef XFREE86_VMGAMMA
-    if (use_vidmode) {
+    if (use_vidmode >= 2) {
         XF86VidModeGamma gamma;
         Bool succeeded;
 
@@ -98,7 +98,7 @@
 static int X11_GetGammaNoLock(_THIS, float *red, float *green, float *blue)
 {
 #ifdef XFREE86_VMGAMMA
-    if (use_vidmode) {
+    if (use_vidmode >= 2) {
         XF86VidModeGamma gamma;
         if (XVidMode(GetGamma, (SDL_Display, SDL_Screen, &gamma))) {
             *red   = gamma.red;