diff options
author | Filippos Karapetis | 2011-10-19 23:51:13 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-10-19 23:52:53 +0300 |
commit | 84a185ede2940e2f6d43d6e6818ac1611e30f871 (patch) | |
tree | 9370de3945d876ae35aac362ac693cffa305c68f /engines/sci | |
parent | 5ba50c69b1b6b91563c5b4823827be4eba766251 (diff) | |
download | scummvm-rg350-84a185ede2940e2f6d43d6e6818ac1611e30f871.tar.gz scummvm-rg350-84a185ede2940e2f6d43d6e6818ac1611e30f871.tar.bz2 scummvm-rg350-84a185ede2940e2f6d43d6e6818ac1611e30f871.zip |
SCI: Added a detection for the second kSetShowStyle variant
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index bd036fcac1..ea2b4816fc 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -1451,7 +1451,16 @@ reg_t kSetShowStyle(EngineState *s, int argc, reg_t *argv) { //int16 priority = argv[4].toSint16(); //argv[5] // boolean, animate or not while the transition lasts //argv[6] // refFrame - //int16 unk7 = (argc >= 8) ? argv[7].toSint16() : 0; // divisions (transition steps?) + + // If the game has the pFadeArray selector, another parameter is used here, + // before the optional last parameter + /*bool hasFadeArray = g_sci->getKernel()->findSelector("pFadeArray") > 0; + if (hasFadeArray) { + // argv[7] + //int16 unk7 = (argc >= 9) ? argv[8].toSint16() : 0; // divisions (transition steps?) + } else { + //int16 unk7 = (argc >= 8) ? argv[7].toSint16() : 0; // divisions (transition steps?) + }*/ if (showStyle > 15) { warning("kSetShowStyle: Illegal style %d for plane %04x:%04x", showStyle, PRINT_REG(planeObj)); |