diff options
author | Martin Kiewitz | 2009-11-04 12:54:27 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-11-04 12:54:27 +0000 |
commit | 429c06c5ae7d9a1cd144994aaff46f87a13a1943 (patch) | |
tree | 56e19ef7ddf53f5cc2b9ba64d37711666139aedd /engines/sci/engine | |
parent | 12e3375f3b47e6e626d8457257fd2036ed835ab1 (diff) | |
download | scummvm-rg350-429c06c5ae7d9a1cd144994aaff46f87a13a1943.tar.gz scummvm-rg350-429c06c5ae7d9a1cd144994aaff46f87a13a1943.tar.bz2 scummvm-rg350-429c06c5ae7d9a1cd144994aaff46f87a13a1943.zip |
SCI/newgui: kGraph / InitPriority changed to reflect sci0 implementation, also moved code
svn-id: r45661
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index f26e014b2d..1950a606ac 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -267,8 +267,9 @@ reg_t kGraph(EngineState *s, int argc, reg_t *argv) { break; case K_GRAPH_ADJUST_PRIORITY: - debugC(2, kDebugLevelGraphics, "adjust_priority(%d, %d)\n", argv[1].toSint16(), argv[2].toSint16()); - s->_gui->modifyPriorityBands(argv[1].toSint16() - 10, argv[2].toSint16() - 10); + // Seems to be only implemented for SCI0/SCI01 games + debugC(2, kDebugLevelGraphics, "adjust_priority(%d, %d)\n", argv[1].toUint16(), argv[2].toUint16()); + s->_gui->graphAdjustPriority(argv[1].toUint16(), argv[2].toUint16()); break; case K_GRAPH_SAVE_UPSCALEDHIRES_BOX: @@ -495,10 +496,10 @@ reg_t kBaseSetter(EngineState *s, int argc, reg_t *argv) { // WORKAROUND for a problem in LSL1VGA. This allows the casino door to be opened, // till the actual problem is found - if (s->_gameName == "lsl1sci" && s->currentRoomNumber() == 300) { - int top = GET_SEL32V(s->_segMan, object, brTop); - PUT_SEL32V(s->_segMan, object, brTop, top + 2); - } + //if (s->_gameName == "lsl1sci" && s->currentRoomNumber() == 300) { + // int top = GET_SEL32V(s->_segMan, object, brTop); + // PUT_SEL32V(s->_segMan, object, brTop, top + 2); + //} return s->r_acc; } |