From 0ef7c6c8f3c95721f52a0e0d3fc2a21352999e2d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 20 Jun 2006 06:50:42 +0000 Subject: [PATCH] Date: Fri, 9 Jun 2006 11:35:23 +0300 From: "Janne Junnila" Subject: [SDL] SDL_SetGamma bug You can't set the the gamma 'brighter' than 1.0. There's a patch attached. --- src/video/SDL_gamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_gamma.c b/src/video/SDL_gamma.c index a5f10727c..a70a1f573 100644 --- a/src/video/SDL_gamma.c +++ b/src/video/SDL_gamma.c @@ -50,7 +50,7 @@ static void CalculateGammaRamp(float gamma, Uint16 *ramp) return; } else /* 1.0 gamma is identity */ - if ( gamma >= 1.0f ) { + if ( gamma == 1.0f ) { for ( i=0; i<256; ++i ) { ramp[i] = (i << 8) | i; }