mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-10 06:10:38 +00:00
whitespace.
This commit is contained in:
parent
367fee1dc6
commit
b4c9dcc7fb
1 changed files with 4 additions and 5 deletions
|
@ -161,6 +161,7 @@ void
|
||||||
BuildGammaTable (float b, float c)
|
BuildGammaTable (float b, float c)
|
||||||
{
|
{
|
||||||
int i, inf;
|
int i, inf;
|
||||||
|
// int p = (int) c;
|
||||||
|
|
||||||
if ((b == 1.0) && (c == 1.0)) {
|
if ((b == 1.0) && (c == 1.0)) {
|
||||||
for (i = 0; i < 256; i++)
|
for (i = 0; i < 256; i++)
|
||||||
|
@ -168,10 +169,8 @@ BuildGammaTable (float b, float c)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 256; i++) { // weighted average toward the
|
for (i = 0; i < 256; i++) { // weighted average toward the median, 127
|
||||||
// median, 127
|
inf = (i * b); // gamma is brightness now, and positive
|
||||||
inf = (i * b); // gamma is brightness now, and
|
|
||||||
// positive
|
|
||||||
inf = bound (0, inf, 255);
|
inf = bound (0, inf, 255);
|
||||||
gammatable[i] = inf + (int) ((127 - inf) * (1 - c));
|
gammatable[i] = inf + (int) ((127 - inf) * (1 - c));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue