diff options
author | Martin Kiewitz | 2010-06-20 16:31:24 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-06-20 16:31:24 +0000 |
commit | b016c16300577ae29d5a78e5be532cef3d4e21ce (patch) | |
tree | 4d2688516b33b9ae4a6460d3b44439fddac99a29 /engines/sci/engine/kgraphics.cpp | |
parent | 7ce739f51b1556e211bffc3f82617013afe23cb8 (diff) | |
download | scummvm-rg350-b016c16300577ae29d5a78e5be532cef3d4e21ce.tar.gz scummvm-rg350-b016c16300577ae29d5a78e5be532cef3d4e21ce.tar.bz2 scummvm-rg350-b016c16300577ae29d5a78e5be532cef3d4e21ce.zip |
SCI: some kPalVary support - intro of island dr. brain works fine now
svn-id: r50082
Diffstat (limited to 'engines/sci/engine/kgraphics.cpp')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index da0f533709..f011f0e2d6 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -646,14 +646,15 @@ reg_t kPalVary(EngineState *s, int argc, reg_t *argv) { switch (operation) { case 0: { // Init GuiResourceId paletteId; - uint16 ticks, paletteStop, paletteDirection; + uint16 ticks, stepStop; + int16 direction; if ((argc >= 3) && (argc <= 5)) { paletteId = argv[1].toUint16(); ticks = argv[2].toUint16(); - paletteStop = argc >= 4 ? argv[3].toUint16() : 64; - paletteDirection = argc >= 5 ? argv[4].toUint16() : 1; - g_sci->_gfxPalette->kernelPalVaryInit(paletteId, ticks); - warning("kPalVary(init) called with paletteId = %d, ticks = %d, stop = %d, direction = %d", paletteId, ticks, paletteStop, paletteDirection); + stepStop = argc >= 4 ? argv[3].toUint16() : 64; + direction = argc >= 5 ? argv[4].toUint16() : 1; + g_sci->_gfxPalette->kernelPalVaryInit(paletteId, ticks, stepStop, direction); + warning("kPalVary(init) called with paletteId = %d, ticks = %d, stop = %d, direction = %d", paletteId, ticks, stepStop, direction); } else { warning("kPalVary(init) called with unsupported argc %d", argc); } |