From 71cc92ab7f79f6a5a4dc3ac03ecde0f5f27219f4 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 25 May 2009 13:25:31 +0000 Subject: 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 --- engines/sci/gfx/gfx_widgets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sci/gfx') 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 -- cgit v1.2.3