diff options
author | Travis Howell | 2004-07-13 10:18:06 +0000 |
---|---|---|
committer | Travis Howell | 2004-07-13 10:18:06 +0000 |
commit | 465331ceba750c82fd843d136060969ad4f9f2df (patch) | |
tree | 3a7b91632eee4c61c0d7bd25bed4690ade9ff22f /scumm | |
parent | d189654e55e7ed485d3a5575b72b343fb5ef5bff (diff) | |
download | scummvm-rg350-465331ceba750c82fd843d136060969ad4f9f2df.tar.gz scummvm-rg350-465331ceba750c82fd843d136060969ad4f9f2df.tar.bz2 scummvm-rg350-465331ceba750c82fd843d136060969ad4f9f2df.zip |
Simpler method from _sev
svn-id: r14203
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/palette.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/palette.cpp b/scumm/palette.cpp index 6658acd97c..75a4a3477b 100644 --- a/scumm/palette.cpp +++ b/scumm/palette.cpp @@ -588,15 +588,17 @@ void ScummEngine::darkenPalette(int redScale, int greenScale, int blueScale, int if (startColor <= endColor) { const byte *cptr; + const byte *palptr; int color, idx, j; + palptr = getPalettePtr(_curPalIndex); for (j = startColor; j <= endColor; j++) { // FIXME: Hack to fix Amiga palette adjustments if ((_features & GF_AMIGA && _version == 5) && (j >= 16 && j < 81)) continue; idx = (_heversion == 70) ? _HEV7ActorPalette[j] : j; - cptr = getPalettePtr(_curPalIndex) + idx * 3; + cptr = palptr + idx * 3; if (_heversion == 70) setDirtyColors(idx, idx); |