aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kgraphics.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2010-01-23 21:33:24 +0000
committerFilippos Karapetis2010-01-23 21:33:24 +0000
commit5b4fcfdbcb2c6b1e48bb560705ffe6e6f5261d0f (patch)
tree49abd5f3c4ce5724118f79150745334276313928 /engines/sci/engine/kgraphics.cpp
parentdcbcb4185586e30ac8f7d1366f272cf134317feb (diff)
downloadscummvm-rg350-5b4fcfdbcb2c6b1e48bb560705ffe6e6f5261d0f.tar.gz
scummvm-rg350-5b4fcfdbcb2c6b1e48bb560705ffe6e6f5261d0f.tar.bz2
scummvm-rg350-5b4fcfdbcb2c6b1e48bb560705ffe6e6f5261d0f.zip
Added some skeleton code for kPalVary()
svn-id: r47485
Diffstat (limited to 'engines/sci/engine/kgraphics.cpp')
-rw-r--r--engines/sci/engine/kgraphics.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 266f154c13..3048e30745 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -604,7 +604,7 @@ reg_t kPalVary(EngineState *s, int argc, reg_t *argv) {
if (argc == 3) {
paletteId = argv[1].toUint16();
time = argv[2].toUint16();
- // forward call to SciGui
+ s->_gui->startPalVary(paletteId, time);
} else {
warning("kPalVary(init) called with unsupported argc %d", argc);
}
@@ -612,7 +612,7 @@ reg_t kPalVary(EngineState *s, int argc, reg_t *argv) {
}
case 3: { // DeInit
if (argc == 1) {
- // forward call to SciGui
+ s->_gui->stopPalVary();
} else {
warning("kPalVary(deinit) called with unsupported argc %d", argc);
}
@@ -622,9 +622,7 @@ reg_t kPalVary(EngineState *s, int argc, reg_t *argv) {
bool pauseState;
if (argc == 2) {
pauseState = argv[1].isNull() ? false : true;
- // this call is actually counting states, so calling this 3 times with true will require calling it later
- // 3 times with false to actually remove pause
- // forward call to SciGui
+ s->_gui->togglePalVary(pauseState);
} else {
warning("kPalVary(pause) called with unsupported argc %d", argc);
}