whitespace.

This commit is contained in:
Jeff Teunissen 2001-02-06 21:13:05 +00:00
parent 367fee1dc6
commit b4c9dcc7fb

View file

@ -160,7 +160,8 @@ V_UpdatePalette (void)
void 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));
} }