aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/gfx_widgets.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-05-25 13:25:31 +0000
committerFilippos Karapetis2009-05-25 13:25:31 +0000
commit71cc92ab7f79f6a5a4dc3ac03ecde0f5f27219f4 (patch)
treebc1732db6efebcc820767da98a6cf64290219c8c /engines/sci/gfx/gfx_widgets.cpp
parentcb5c26dd53d749e355ab30209a81a89fa9289eba (diff)
downloadscummvm-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/gfx/gfx_widgets.cpp')
-rw-r--r--engines/sci/gfx/gfx_widgets.cpp4
1 files changed, 2 insertions, 2 deletions
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