From 38c661bfacf608840b2ad9170b50366e32bcf3d3 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Thu, 13 May 2010 21:29:32 +0000 Subject: SCI: fix regression of r49026 - line between titlebar and actual window was overdrawn svn-id: r49027 --- engines/sci/graphics/ports.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') 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; } -- cgit v1.2.3