Fixed using the video mode extension on older servers
authorSam Lantinga <slouken@lokigames.com>
Wed, 11 Jul 2001 20:18:52 +0000
changeset 100a1c973c35fef
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
     1.1 --- a/src/video/x11/SDL_x11gamma.c	Mon Jul 09 23:26:13 2001 +0000
     1.2 +++ b/src/video/x11/SDL_x11gamma.c	Wed Jul 11 20:18:52 2001 +0000
     1.3 @@ -37,7 +37,7 @@
     1.4  static int X11_SetGammaNoLock(_THIS, float red, float green, float blue)
     1.5  {
     1.6  #ifdef XFREE86_VMGAMMA
     1.7 -    if (use_vidmode >= 2) {
     1.8 +    if (use_vidmode >= 200) {
     1.9          XF86VidModeGamma gamma;
    1.10          Bool succeeded;
    1.11  
     2.1 --- a/src/video/x11/SDL_x11modes.c	Mon Jul 09 23:26:13 2001 +0000
     2.2 +++ b/src/video/x11/SDL_x11modes.c	Wed Jul 11 20:18:52 2001 +0000
     2.3 @@ -271,7 +271,7 @@
     2.4          }
     2.5          XFree(modes);
     2.6  
     2.7 -        use_vidmode = vm_major;
     2.8 +        use_vidmode = vm_major * 100 + vm_minor;
     2.9          save_mode(this);
    2.10      }
    2.11  #endif /* XFREE86_VM */