diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 5 | ||||
-rw-r--r-- | engines/sci/gfx/gfx_widgets.cpp | 4 |
2 files changed, 4 insertions, 5 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))); diff --git a/engines/sci/gfx/gfx_widgets.cpp b/engines/sci/gfx/gfx_widgets.cpp index 29690e0fe2..713366649b 100644 --- a/engines/sci/gfx/gfx_widgets.cpp +++ b/engines/sci/gfx/gfx_widgets.cpp @@ -1782,8 +1782,8 @@ int gfxw_widget_matches_snapshot(gfxw_snapshot_t *snapshot, GfxWidget *widget) { // (this one includes equality too) return ((widget->_serial >= free_above_eq || widget->_serial < free_below) && (snapshot->area.x <= bounds.x && snapshot->area.y <= bounds.y && - snapshot->area.x + snapshot->area.width >= bounds.x + bounds.width && - snapshot->area.y + snapshot->area.height >= bounds.y + bounds.height)); + snapshot->area.width >= bounds.width && + snapshot->area.height >= bounds.height)); } #define MAGIC_FREE_NUMBER -42 |