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:
parent
2313517279
commit
2d4680335a
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue