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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401869
This commit is contained in:
parent
772972e264
commit
fdfcc79761
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ static void CalculateGammaRamp(float gamma, Uint16 *ramp)
|
||||||
return;
|
return;
|
||||||
} else
|
} else
|
||||||
/* 1.0 gamma is identity */
|
/* 1.0 gamma is identity */
|
||||||
if ( gamma >= 1.0f ) {
|
if ( gamma == 1.0f ) {
|
||||||
for ( i=0; i<256; ++i ) {
|
for ( i=0; i<256; ++i ) {
|
||||||
ramp[i] = (i << 8) | i;
|
ramp[i] = (i << 8) | i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue