aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2003-10-16 05:49:09 +0000
committerTravis Howell2003-10-16 05:49:09 +0000
commit8d656e8efbd66e2ff110ed30eff7fd9052680b1d (patch)
treef3db3f95b10f5613e50cc5d0a2fd7819e0b3c4f3 /scumm
parentf057e794f713be70d6203ad5b1eb2be45dfeab4d (diff)
downloadscummvm-rg350-8d656e8efbd66e2ff110ed30eff7fd9052680b1d.tar.gz
scummvm-rg350-8d656e8efbd66e2ff110ed30eff7fd9052680b1d.tar.bz2
scummvm-rg350-8d656e8efbd66e2ff110ed30eff7fd9052680b1d.zip
Add hack from Jamieson, to prevent palette darkening when it shouldn't in Amiga versions of Mi2/FOA.
svn-id: r10820
Diffstat (limited to 'scumm')
-rw-r--r--scumm/gfx.cpp7
1 files changed, 7 insertions, 0 deletions
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)