aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-16 21:00:15 +0000
committerMartin Kiewitz2010-01-16 21:00:15 +0000
commit570911b83ede482386a7c0212b982ce8a06c86bd (patch)
tree81704fefedefc9df0dd8abea311c4a2c5d207409 /engines/sci/graphics
parent3e0251eced95596260cf79e67db0497e3a6a121c (diff)
downloadscummvm-rg350-570911b83ede482386a7c0212b982ce8a06c86bd.tar.gz
scummvm-rg350-570911b83ede482386a7c0212b982ce8a06c86bd.tar.bz2
scummvm-rg350-570911b83ede482386a7c0212b982ce8a06c86bd.zip
SCI: fix kNewWindow code to match the code in gregs engine
svn-id: r47332
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/windowmgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/windowmgr.cpp b/engines/sci/graphics/windowmgr.cpp
index f81c38603b..8b30b54a2d 100644
--- a/engines/sci/graphics/windowmgr.cpp
+++ b/engines/sci/graphics/windowmgr.cpp
@@ -155,7 +155,7 @@ Window *WindowMgr::NewWindow(const Common::Rect &dims, const Common::Rect *resto
}
r = dims;
- if (style == SCI_WINDOWMGR_STYLE_USER || !(style & SCI_WINDOWMGR_STYLE_NOFRAME)) {
+ if ((style != SCI_WINDOWMGR_STYLE_USER) && !(style & SCI_WINDOWMGR_STYLE_NOFRAME)) {
r.grow(1);
if (style & SCI_WINDOWMGR_STYLE_TITLE) {
r.top -= 10;