diff options
author | Filippos Karapetis | 2009-05-25 13:25:31 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-05-25 13:25:31 +0000 |
commit | 71cc92ab7f79f6a5a4dc3ac03ecde0f5f27219f4 (patch) | |
tree | bc1732db6efebcc820767da98a6cf64290219c8c /engines/sci/engine | |
parent | cb5c26dd53d749e355ab30209a81a89fa9289eba (diff) | |
download | scummvm-rg350-71cc92ab7f79f6a5a4dc3ac03ecde0f5f27219f4.tar.gz scummvm-rg350-71cc92ab7f79f6a5a4dc3ac03ecde0f5f27219f4.tar.bz2 scummvm-rg350-71cc92ab7f79f6a5a4dc3ac03ecde0f5f27219f4.zip |
Fixed a nasty bug in the GUI code, which caused the windows in PQ3 and SCI1.1 games to be erased incorrectly
svn-id: r40889
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 45164db13d..3aefbe4c8d 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -2477,7 +2477,7 @@ reg_t kNewWindow(EngineState *s, int funct_nr, int argc, reg_t *argv) { gfx_color_t black; gfx_color_t lWhite; int priority; - int argextra = argc == 13 ? 4 : 0; // Triggers in PQ3 + int argextra = argc == 13 ? 4 : 0; // Triggers in PQ3 and SCI1.1 games y = SKPV(0); x = SKPV(1); @@ -2530,8 +2530,7 @@ reg_t kNewWindow(EngineState *s, int funct_nr, int argc, reg_t *argv) { s->titlebar_port->_font, lWhite, black, argv[4 + argextra].segment ? kernel_dereference_char_pointer(s, argv[4 + argextra], 0) : NULL, flags); - // PQ3 has the interpreter store underBits implicitly. - // The feature was promptly removed after its release, never to be seen again. + // PQ3 and SCI1.1 games have the interpreter store underBits implicitly if (argextra) gfxw_port_auto_restore_background(s->visual, window, gfx_rect(SKPV(5), SKPV(4), SKPV(7) - SKPV(5), SKPV(6) - SKPV(4))); |