Skip to content

Commit

Permalink
Date: Fri, 9 Jun 2006 11:35:23 +0300
Browse files Browse the repository at this point in the history
From: "Janne Junnila"
Subject: [SDL] SDL_SetGamma bug

You can't set the the gamma 'brighter' than 1.0. There's a patch attached.
  • Loading branch information
slouken committed Jun 20, 2006
1 parent de92ae7 commit fc90443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_gamma.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit fc90443

Please sign in to comment.