aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-06-20 13:30:40 +0000
committerMartin Kiewitz2010-06-20 13:30:40 +0000
commitd2a3f59bfb5d27c5524a4bd59a789378f7bd09e6 (patch)
treefa6c7d50fd263b997e70131746118a48973608d8
parent30f6e7824bad89293db3a43b6d67657862a03c51 (diff)
downloadscummvm-rg350-d2a3f59bfb5d27c5524a4bd59a789378f7bd09e6.tar.gz
scummvm-rg350-d2a3f59bfb5d27c5524a4bd59a789378f7bd09e6.tar.bz2
scummvm-rg350-d2a3f59bfb5d27c5524a4bd59a789378f7bd09e6.zip
SCI: update timestamp like before for inbetween SCI1.1 games
svn-id: r50078
-rw-r--r--engines/sci/graphics/palette.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/sci/graphics/palette.cpp b/engines/sci/graphics/palette.cpp
index 447ad23ebe..9058680c46 100644
--- a/engines/sci/graphics/palette.cpp
+++ b/engines/sci/graphics/palette.cpp
@@ -244,6 +244,9 @@ bool GfxPalette::merge(Palette *pFrom, bool force, bool forceRealMerge) {
pFrom->mapping[i] = i;
}
}
+ // We don't update the timestamp for SCI1.1, it's only updated on kDrawPic calls
+ return paletteChanged;
+
} else {
// colors 0 (black) and 255 (white) are not affected by merging
for (i = 1 ; i < 255; i++) {
@@ -293,15 +296,15 @@ bool GfxPalette::merge(Palette *pFrom, bool force, bool forceRealMerge) {
}
}
- // We don't update the timestamp here for SCI1.1, it's only updated on kDrawPic calls
- if (getSciVersion() < SCI_VERSION_1_1)
+ if (!forceRealMerge)
_sysPalette.timestamp = g_system->getMillis() * 60 / 1000;
return paletteChanged;
}
// This is used for SCI1.1 and called from kDrawPic. We only update sysPalette timestamp this way for SCI1.1
void GfxPalette::increaseSysTimestamp() {
- _sysPalette.timestamp++;
+ if (!_alwaysForceRealMerge) // Don't do this on inbetween SCI1.1 games
+ _sysPalette.timestamp++;
}
uint16 GfxPalette::matchColor(byte r, byte g, byte b) {