aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2010-02-06 21:22:05 +0000
committerMartin Kiewitz2010-02-06 21:22:05 +0000
commit3255b572ad329b09f8cdc1f52c67e1db4396e07e (patch)
treeb910e6ec28ef48f71cdfe52d84d3efafe1c77ac6 /engines/sci
parent1e67b56eee611a52f6c7fa9d3b5d17bda741c995 (diff)
downloadscummvm-rg350-3255b572ad329b09f8cdc1f52c67e1db4396e07e.tar.gz
scummvm-rg350-3255b572ad329b09f8cdc1f52c67e1db4396e07e.tar.bz2
scummvm-rg350-3255b572ad329b09f8cdc1f52c67e1db4396e07e.zip
SCI: added debug code to kPalVary, added warning when calling kPalette(setFromResource) with unsupported parameters
svn-id: r47941
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kgraphics.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 564664f079..78f5251171 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -561,6 +561,8 @@ reg_t kPalette(EngineState *s, int argc, reg_t *argv) {
GuiResourceId resourceId = argv[1].toUint16();
bool force = argv[2].toUint16() == 2 ? true : false;
s->_gfxPalette->kernelSetFromResource(resourceId, force);
+ } else {
+ warning("kPalette(1) called with %d parameters", argc);
}
break;
case 2: { // Set palette-flag(s)
@@ -645,14 +647,20 @@ reg_t kPalVary(EngineState *s, int argc, reg_t *argv) {
paletteId = argv[1].toUint16();
time = argv[2].toUint16();
s->_gfxPalette->startPalVary(paletteId, time);
+ warning("kPalVary(init) called with paletteId = %d, time = %d", paletteId, time);
} else {
warning("kPalVary(init) called with unsupported argc %d", argc);
}
break;
}
+ case 1: { // Unknown
+ warning("kPalVary(1) called with parameter %d", argv[1].toUint16());
+ break;
+ }
case 3: { // DeInit
if (argc == 1) {
s->_gfxPalette->stopPalVary();
+ warning("kPalVary(deinit)");
} else {
warning("kPalVary(deinit) called with unsupported argc %d", argc);
}
@@ -663,6 +671,7 @@ reg_t kPalVary(EngineState *s, int argc, reg_t *argv) {
if (argc == 2) {
pauseState = argv[1].isNull() ? false : true;
s->_gfxPalette->togglePalVary(pauseState);
+ warning("kPalVary(pause) called with state = %d", pauseState);
} else {
warning("kPalVary(pause) called with unsupported argc %d", argc);
}