Fix an init issue with the earlier ATI workaround.

git-svn-id: https://svn.eduke32.com/eduke32@2094 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-10-30 21:48:57 +00:00
parent 3a089f894c
commit 3dd39c118d

View file

@ -2273,7 +2273,7 @@ int32_t setgamma(void)
// This formula is taken from Doomsday
if (!winlayer_uselastgamma)
if (winlayer_uselastgamma <= 0)
for (i = 0; i < 256; i++)
{
double val = i * contrast - (contrast - 1) * 127;