src/video/x11/SDL_x11gamma.c
changeset 100 a1c973c35fef
parent 90 ee1f71c10889
child 232 678e3ed01019
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 ) {