- 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)
This commit is contained in:
Randy Heit 2010-06-18 03:52:04 +00:00
parent 34d8212d64
commit 141cf825cf

View file

@ -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<int>(255 - TSrc::Gray(pin),0,255);
gray = clamp<int>(TSrc::Gray(pin),0,255);
PalEntry pe = cm->GrayscaleToColor[gray];
TBlend::OpC(pout[TDest::RED], pe.r , a, inf);