Fixed using the video mode extension on older servers
authorSam Lantinga <slouken@lokigames.com>
Wed, 11 Jul 2001 20:18:52 +0000
changeset 100 a1c973c35fef
parent 99 1b387dc653d0
child 101 825b2fa28e2e
Fixed using the video mode extension on older servers
src/video/x11/SDL_x11gamma.c
src/video/x11/SDL_x11modes.c
--- a/src/video/x11/SDL_x11gamma.c	Mon Jul 09 23:26:13 2001 +0000
+++ b/src/video/x11/SDL_x11gamma.c	Wed Jul 11 20:18:52 2001 +0000
@@ -37,7 +37,7 @@
 static int X11_SetGammaNoLock(_THIS, float red, float green, float blue)
 {
 #ifdef XFREE86_VMGAMMA
-    if (use_vidmode >= 2) {
+    if (use_vidmode >= 200) {
         XF86VidModeGamma gamma;
         Bool succeeded;
 
--- a/src/video/x11/SDL_x11modes.c	Mon Jul 09 23:26:13 2001 +0000
+++ b/src/video/x11/SDL_x11modes.c	Wed Jul 11 20:18:52 2001 +0000
@@ -271,7 +271,7 @@
         }
         XFree(modes);
 
-        use_vidmode = vm_major;
+        use_vidmode = vm_major * 100 + vm_minor;
         save_mode(this);
     }
 #endif /* XFREE86_VM */