Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11gamma.c @ 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 | ee1f71c10889 |
children | 678e3ed01019 |
comparison
equal
deleted
inserted
replaced
99:1b387dc653d0 | 100:a1c973c35fef |
---|---|
35 #define MIN_GAMMA (1.0/MAX_GAMMA) | 35 #define MIN_GAMMA (1.0/MAX_GAMMA) |
36 | 36 |
37 static int X11_SetGammaNoLock(_THIS, float red, float green, float blue) | 37 static int X11_SetGammaNoLock(_THIS, float red, float green, float blue) |
38 { | 38 { |
39 #ifdef XFREE86_VMGAMMA | 39 #ifdef XFREE86_VMGAMMA |
40 if (use_vidmode >= 2) { | 40 if (use_vidmode >= 200) { |
41 XF86VidModeGamma gamma; | 41 XF86VidModeGamma gamma; |
42 Bool succeeded; | 42 Bool succeeded; |
43 | 43 |
44 /* Clamp the gamma values */ | 44 /* Clamp the gamma values */ |
45 if ( red < MIN_GAMMA ) { | 45 if ( red < MIN_GAMMA ) { |