# HG changeset patch # User Sam Lantinga # Date 1150786283 0 # Node ID 7179cb72dbba38a1d57bf0662144ab10c76b5902 # Parent 7b19e09f5481fe99815e3a47504bcb20f3dba407 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. diff -r 7b19e09f5481 -r 7179cb72dbba src/video/SDL_gamma.c --- a/src/video/SDL_gamma.c Tue Jun 20 06:41:15 2006 +0000 +++ b/src/video/SDL_gamma.c Tue Jun 20 06:51:23 2006 +0000 @@ -51,7 +51,7 @@ 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; }