aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-18 19:51:50 +0000
committerMax Horn2003-05-18 19:51:50 +0000
commit7ec709e35f513702c65ec9abae4f1eea9e5fe906 (patch)
tree0f6503fdc63aa20a3ca7d56d8c9caa3ac32599ff /scumm/gfx.cpp
parent8f7f22aeae822a123627c6f7e27e6f397129bd70 (diff)
downloadscummvm-rg350-7ec709e35f513702c65ec9abae4f1eea9e5fe906.tar.gz
scummvm-rg350-7ec709e35f513702c65ec9abae4f1eea9e5fe906.tar.bz2
scummvm-rg350-7ec709e35f513702c65ec9abae4f1eea9e5fe906.zip
Part of patch #739119 (attempt to fix bug #651077 at least partially)
svn-id: r7643
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 3cb08329b0..53d2b09175 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -3104,9 +3104,9 @@ void Scumm::createSpecialPalette(int16 from, int16 to, int16 redScale, int16 gre
int g = (int) (*curPtr++ * greenScale) >> 8;
int b = (int) (*curPtr++ * blueScale) >> 8;
- searchPtr = palPtr;
+ searchPtr = palPtr + from * 3;
bestResult = 32000;
- currentIndex = 0;
+ currentIndex = from;
for (j = from; j < to; j++) {
int ar = (*searchPtr++);