From 141cf825cf1c3d6db9f0a375b9ed1f5edffef477 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 18 Jun 2010 03:52:04 +0000 Subject: [PATCH] - Fixed: iCopyColors() should not invert the grayscale value for special colormaps, since this is already handled by the GrayscaleToColor array for the one colormap that needs it. SVN r2379 (trunk) --- src/textures/bitmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/bitmap.cpp b/src/textures/bitmap.cpp index 20dfd38bd8..b552f9797b 100644 --- a/src/textures/bitmap.cpp +++ b/src/textures/bitmap.cpp @@ -101,7 +101,7 @@ void iCopyColors(BYTE *pout, const BYTE *pin, int count, int step, FCopyInfo *in a = TSrc::A(pin); if (TBlend::ProcessAlpha0() || a) { - gray = clamp(255 - TSrc::Gray(pin),0,255); + gray = clamp(TSrc::Gray(pin),0,255); PalEntry pe = cm->GrayscaleToColor[gray]; TBlend::OpC(pout[TDest::RED], pe.r , a, inf);