From e379d243884f5e2ebace91d0543dd479e3b2b113 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 18 Jun 2010 04:10:05 +0000 Subject: [PATCH] - Fixed: The intensity scalar for building DesaturateColormaps was off by one. SVN r2380 (trunk) --- src/v_palette.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v_palette.cpp b/src/v_palette.cpp index c47f75370..231e160c0 100644 --- a/src/v_palette.cpp +++ b/src/v_palette.cpp @@ -483,12 +483,12 @@ void InitPalette () { int intensity = (GPalette.BaseColors[c].r * 77 + GPalette.BaseColors[c].g * 143 + - GPalette.BaseColors[c].b * 37) / 255; + GPalette.BaseColors[c].b * 37) / 256; int r = (GPalette.BaseColors[c].r * (31-m) + intensity *m) / 31; int g = (GPalette.BaseColors[c].g * (31-m) + intensity *m) / 31; int b = (GPalette.BaseColors[c].b * (31-m) + intensity *m) / 31; - shade[c] = ColorMatcher.Pick (r, g, b); + shade[c] = ColorMatcher.Pick(r, g, b); } }