From b4c9dcc7fb261a040d3a0c12c04afc27f2a63d44 Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Tue, 6 Feb 2001 21:13:05 +0000 Subject: [PATCH] whitespace. --- source/sw_view.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/sw_view.c b/source/sw_view.c index 8ff8aba..8e01e03 100644 --- a/source/sw_view.c +++ b/source/sw_view.c @@ -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)); }