1
0
Fork 0
forked from fte/fteqw

Fixed some indentation stuff, so it's more consistant.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2120 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-03-15 20:03:00 +00:00
parent 2313517279
commit 2d4680335a

View file

@ -342,13 +342,15 @@ void BuildGammaTable (float g, float c)
// g = bound (0.1, g, 3);
// c = bound (1, c, 3);
if (g == 1 && c == 1) {
if (g == 1 && c == 1)
{
for (i = 0; i < 256; i++)
gammatable[i] = i;
return;
}
for (i = 0; i < 256; i++) {
for (i = 0; i < 256; i++)
{
inf = 255 * pow ((i + 0.5) / 255.5 * c, g) + 0.5;
if (inf < 0)
inf = 0;