diff options
author | Martin Kiewitz | 2010-06-20 12:38:08 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-06-20 12:38:08 +0000 |
commit | daf1429ca22e887d49e761304e60b47f46e97bbf (patch) | |
tree | df1ffba4801b542bdc6cff85580d7c1d1645edfe | |
parent | 36ca2ce421d1dfbf6517d6ea008bbd97b9f6ccb8 (diff) | |
download | scummvm-rg350-daf1429ca22e887d49e761304e60b47f46e97bbf.tar.gz scummvm-rg350-daf1429ca22e887d49e761304e60b47f46e97bbf.tar.bz2 scummvm-rg350-daf1429ca22e887d49e761304e60b47f46e97bbf.zip |
SCI: implementing reading of parameters for kPalVary(init) for argc 4 and argc 5
svn-id: r50075
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 6e0dab7e28..344d79b9d2 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -646,12 +646,14 @@ reg_t kPalVary(EngineState *s, int argc, reg_t *argv) { switch (operation) { case 0: { // Init GuiResourceId paletteId; - uint16 time; - if (argc == 3) { + uint16 ticks, paletteStop, paletteDirection; + if ((argc >= 3) && (argc <= 5)) { paletteId = argv[1].toUint16(); - time = argv[2].toUint16(); - g_sci->_gfxPalette->startPalVary(paletteId, time); - warning("kPalVary(init) called with paletteId = %d, time = %d", paletteId, time); + ticks = argv[2].toUint16(); + paletteStop = argc >= 4 ? argv[3].toUint16() : 64; + paletteDirection = argc >= 5 ? argv[4].toUint16() : 1; + g_sci->_gfxPalette->startPalVary(paletteId, ticks); + warning("kPalVary(init) called with paletteId = %d, ticks = %d, stop = %d, direction = %d", paletteId, ticks, paletteStop, paletteDirection); } else { warning("kPalVary(init) called with unsupported argc %d", argc); } |