mirror of
https://github.com/yawut/SDL.git
synced 2026-06-01 09:14:13 -05:00
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.
This commit is contained in:
parent
e60b21f0e2
commit
0ef7c6c8f3
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user