aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2010-07-22 16:01:32 +0000
committerFilippos Karapetis2010-07-22 16:01:32 +0000
commitb587bf35c8207a71b894d60edba7b30bab84adde (patch)
tree40de84a1b4635b8e8c1ffcb0b210a7bc38cbc936 /engines
parent28bc31a13991b71d7007eaaf82c6f80f09144734 (diff)
downloadscummvm-rg350-b587bf35c8207a71b894d60edba7b30bab84adde.tar.gz
scummvm-rg350-b587bf35c8207a71b894d60edba7b30bab84adde.tar.bz2
scummvm-rg350-b587bf35c8207a71b894d60edba7b30bab84adde.zip
SCI: changed the comment about the palette merging (it's not a workaround anymore). Also, changed the warning when a picture has a broken palette into debug output - these pictures (which can be found in other games too) are usually meant to be blank, thus don't have a palette
svn-id: r51148
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/palette.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/engines/sci/graphics/palette.cpp b/engines/sci/graphics/palette.cpp
index 2eebd57976..73689fe3b2 100644
--- a/engines/sci/graphics/palette.cpp
+++ b/engines/sci/graphics/palette.cpp
@@ -60,12 +60,12 @@ GfxPalette::GfxPalette(ResourceManager *resMan, GfxScreen *screen, bool useMergi
_sysPaletteChanged = false;
- // Pseudo-WORKAROUND
- // Quest for Glory 3 demo, Eco Quest 1 demo, Laura Bow 2 demo, Police Quest 1 vga and all Nick's Picks
- // all use an inbetween interpreter, some parts are SCI1.1, some parts are SCI1
- // It's not using the SCI1.1 palette merging (copying over all the colors) but the real merging
- // If we use the copying over, we will get issues because some views have marked all colors as being used
- // and those will overwrite the current palette in that case
+ // Quest for Glory 3 demo, Eco Quest 1 demo, Laura Bow 2 demo, Police Quest
+ // 1 vga and all Nick's Picks all use the older palette format and thus are
+ // not using the SCI1.1 palette merging (copying over all the colors) but
+ // the real merging done in earlier games. If we use the copying over, we
+ // will get issues because some views have marked all colors as being used
+ // and those will overwrite the current palette in that case
_useMerging = useMerging;
palVaryInit();
@@ -106,12 +106,7 @@ void GfxPalette::createFromData(byte *data, int bytesLeft, Palette *paletteOut)
if (bytesLeft < 37) {
// This happens when loading palette of picture 0 in sq5 - the resource is broken and doesn't contain a full
// palette
-
- if (g_sci->getGameId() == GID_SQ5 && g_sci->getEngineState()->currentRoomNumber() == 110 && bytesLeft == 28) {
- // Known case for SQ5, which doesn't affect gameplay, thus don't throw a warning
- } else {
- warning("GfxPalette::createFromData() - not enough bytes in resource, expected palette header");
- }
+ debugC(2, "GfxPalette::createFromData() - not enough bytes in resource (%d), expected palette header", bytesLeft);
return;
}
// palette formats in here are not really version exclusive, we can not use sci-version to differentiate between them