aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2004-07-26 14:10:42 +0000
committerTravis Howell2004-07-26 14:10:42 +0000
commitf8e0fb18ba5101dad5792506bc198f518623e8f4 (patch)
tree539ae49c1a0b213e8cd76d5b152f7ae59bcd4ca5
parent5c2a7a7775e30bfca78748124082131c0c0b36d9 (diff)
downloadscummvm-rg350-f8e0fb18ba5101dad5792506bc198f518623e8f4.tar.gz
scummvm-rg350-f8e0fb18ba5101dad5792506bc198f518623e8f4.tar.bz2
scummvm-rg350-f8e0fb18ba5101dad5792506bc198f518623e8f4.zip
Ooops, adjust for start value.
svn-id: r14337
-rw-r--r--scumm/palette.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/palette.cpp b/scumm/palette.cpp
index 135a1e59e7..8db158dcdf 100644
--- a/scumm/palette.cpp
+++ b/scumm/palette.cpp
@@ -454,9 +454,9 @@ static inline uint colorWeight(int red, int green, int blue) {
void ScummEngine::setupShadowPalette(int redScale, int greenScale, int blueScale, int startColor, int endColor, int start, int end) {
const byte *basepal = getPalettePtr(_curPalIndex);
- const byte *pal = basepal;
const byte *compareptr;
- byte *table = _shadowPalette;
+ const byte *pal = basepal + start * 3;
+ byte *table = _shadowPalette + start * 3;
int i;
// This is a correction of the patch supplied for BUG #588501.