changeset 100:a1c973c35fef

Fixed using the video mode extension on older servers
author Sam Lantinga <slouken@lokigames.com>
date Wed, 11 Jul 2001 20:18:52 +0000
parents 1b387dc653d0
children 825b2fa28e2e
files src/video/x11/SDL_x11gamma.c src/video/x11/SDL_x11modes.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 */