diff options
author | Filippos Karapetis | 2009-10-13 09:33:57 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-10-13 09:33:57 +0000 |
commit | 0f995c02f32a8ccd1b3ebfcb16d2b7c21225df86 (patch) | |
tree | 6a9b8138e50c091f077e36cfa28bf1281f691d1c | |
parent | db5ee083272856225528e626bf9327811c81387a (diff) | |
download | scummvm-rg350-0f995c02f32a8ccd1b3ebfcb16d2b7c21225df86.tar.gz scummvm-rg350-0f995c02f32a8ccd1b3ebfcb16d2b7c21225df86.tar.bz2 scummvm-rg350-0f995c02f32a8ccd1b3ebfcb16d2b7c21225df86.zip |
Fixed a bug in the graphics function detection code, and corrected the location of the static "overlay" selector in SCI0 games. Fixes the demo of lsl3
svn-id: r45010
-rw-r--r-- | engines/sci/engine/state.cpp | 4 | ||||
-rw-r--r-- | engines/sci/engine/static_selectors.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/state.cpp b/engines/sci/engine/state.cpp index 047d6ca6c2..3848c512b6 100644 --- a/engines/sci/engine/state.cpp +++ b/engines/sci/engine/state.cpp @@ -574,9 +574,9 @@ SciVersion EngineState::detectGfxFunctionsType() { offset += 2; } - argc = scr[offset++]; - if (opcode == op_callk) { + argc = scr[offset++]; + if (kFuncNum == 8) { // kDrawPic // If kDrawPic is called with 6 parameters from the // overlay selector, the game is using old graphics functions. diff --git a/engines/sci/engine/static_selectors.cpp b/engines/sci/engine/static_selectors.cpp index 09bdec6cac..98314378d4 100644 --- a/engines/sci/engine/static_selectors.cpp +++ b/engines/sci/engine/static_selectors.cpp @@ -65,7 +65,7 @@ static const char * const sci1Selectors[] = { static const SelectorRemap sci0SelectorRemap[] = { { "caller", 119 }, { "cue", 121 }, { "owner", 130 }, { "completed", 159 }, { "cycler", 164 }, { "moveDone", 170 }, - { "distance", 173 }, { "setCursor", 254 }, { "overlay", 302 }, + { "distance", 173 }, { "setCursor", 254 }, { "overlay", 270 }, { "points", 316 }, { "flags", 368 }, { 0, 0 } }; |