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