diff options
author | Martin Kiewitz | 2010-07-10 20:45:59 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-10 20:45:59 +0000 |
commit | 5e4d4fde678e0fda0bd371770046208d7082b8c4 (patch) | |
tree | 490f6aab63226537ca46f6908739e91eb2933e5e /engines/sci | |
parent | 5c2489f1533067dcfe303496055e63e8c8d7c189 (diff) | |
download | scummvm-rg350-5e4d4fde678e0fda0bd371770046208d7082b8c4.tar.gz scummvm-rg350-5e4d4fde678e0fda0bd371770046208d7082b8c4.tar.bz2 scummvm-rg350-5e4d4fde678e0fda0bd371770046208d7082b8c4.zip |
SCI: adding workaround for kGraph(fillBoxAny) in sq4cd when accessing the game menu
svn-id: r50791
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/kernel.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp index 74b0502af4..44062d70c0 100644 --- a/engines/sci/engine/kernel.cpp +++ b/engines/sci/engine/kernel.cpp @@ -256,6 +256,12 @@ static const SciWorkaroundEntry kDisposeScript_workarounds[] = { }; // gameID, scriptNr,lvl, object-name, method-name, call, index, replace +static const SciWorkaroundEntry kGraphFillBoxAny_workarounds[] = { + { GID_SQ4, 818, 0, "iconTextSwitch", "show", -1, 0, { 0, 0 } }, // game menu "text/speech" display - parameter 5 is missing, but the right color number is on the stack + SCI_WORKAROUNDENTRY_TERMINATOR +}; + +// gameID, scriptNr,lvl, object-name, method-name, call, index, replace static const SciWorkaroundEntry kUnLoad_workarounds[] = { { GID_SQ1, 303, 0, "slotGuy", "dispose", -1, 0, { 1, 0 } }, // parameter 1 is not passed, script error when leaving ulence flats bar SCI_WORKAROUNDENTRY_TERMINATOR @@ -371,7 +377,7 @@ static const SciKernelMapSubEntry kGraph_subops[] = { // ^ this may get called with invalid references, we check them within restoreBits() and sierra sci behaves the same { SIG_SCIALL, 9, MAP_CALL(GraphFillBoxBackground), "iiii", NULL }, { SIG_SCIALL, 10, MAP_CALL(GraphFillBoxForeground), "iiii", NULL }, - { SIG_SCIALL, 11, MAP_CALL(GraphFillBoxAny), "iiiiii(i)(i)", NULL }, + { SIG_SCIALL, 11, MAP_CALL(GraphFillBoxAny), "iiiiii(i)(i)", kGraphFillBoxAny_workarounds }, { SIG_SCIALL, 12, MAP_CALL(GraphUpdateBox), "iiii(i)(r)", NULL }, { SIG_SCIALL, 13, MAP_CALL(GraphRedrawBox), "iiii", NULL }, { SIG_SCIALL, 14, MAP_CALL(GraphAdjustPriority), "ii", NULL }, |