From 8d656e8efbd66e2ff110ed30eff7fd9052680b1d Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Thu, 16 Oct 2003 05:49:09 +0000 Subject: Add hack from Jamieson, to prevent palette darkening when it shouldn't in Amiga versions of Mi2/FOA. svn-id: r10820 --- scumm/gfx.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 50b713f1e9..00e2074d79 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -3091,6 +3091,13 @@ void ScummEngine::darkenPalette(int redScale, int greenScale, int blueScale, int cur = _currentPalette + startColor * 3; for (j = startColor; j <= endColor; j++) { + // FIXME: Hack to fix Amiga palette adjustments + if ((_features & GF_AMIGA && _version == 5) && (j >= 16 && j < 81)) { + cptr += 3; + cur += 3; + continue; + } + color = *cptr++; color = color * redScale / 0xFF; if (color > 255) -- cgit v1.2.3