mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Add hack from Jamieson, to prevent palette darkening when it shouldn't in Amiga versions of Mi2/FOA.
svn-id: r10820
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user