aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-05-13 21:29:32 +0000
committerMartin Kiewitz2010-05-13 21:29:32 +0000
commit38c661bfacf608840b2ad9170b50366e32bcf3d3 (patch)
treea6148b8eb579264bb46b34b5683f5b14684f86c1 /engines
parenta5f59ccdae6cd60b365229e7fd48c737dad6b4ba (diff)
downloadscummvm-rg350-38c661bfacf608840b2ad9170b50366e32bcf3d3.tar.gz
scummvm-rg350-38c661bfacf608840b2ad9170b50366e32bcf3d3.tar.bz2
scummvm-rg350-38c661bfacf608840b2ad9170b50366e32bcf3d3.zip
SCI: fix regression of r49026 - line between titlebar and actual window was overdrawn
svn-id: r49027
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/ports.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp
index 1a77e6c6ae..bbe0c4adb0 100644
--- a/engines/sci/graphics/ports.cpp
+++ b/engines/sci/graphics/ports.cpp
@@ -314,11 +314,10 @@ void GfxPorts::drawWindow(Window *pWnd) {
_paint16->frameRect(r);// draw actual window frame
if (wndStyle & SCI_WINDOWMGR_STYLE_TITLE) {
+ r.bottom = r.top + 10;
if (getSciVersion() <= SCI_VERSION_0_LATE) {
// draw a black line between titlebar and actual window content for SCI0
- r.bottom = r.top + 10;
_paint16->frameRect(r);
- r.bottom = pWnd->dims.bottom - 1;
}
r.grow(-1);
if (getSciVersion() <= SCI_VERSION_0_LATE)
@@ -333,6 +332,7 @@ void GfxPorts::drawWindow(Window *pWnd) {
}
r.grow(+1);
+ r.bottom = pWnd->dims.bottom - 1;
r.top += 9;
}