From 3005fffe784e0359cc5a6b92a159136d6ccb0df6 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 25 Apr 2010 19:49:10 +0000 Subject: SCI: draw a black line between titlebar and actual window content for SCI0, also replaced hardcoded white value (255) with screen specific value svn-id: r48798 --- engines/sci/graphics/ports.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engines/sci') diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp index f3f834e0d8..dd9d4952c4 100644 --- a/engines/sci/graphics/ports.cpp +++ b/engines/sci/graphics/ports.cpp @@ -312,7 +312,11 @@ void GfxPorts::drawWindow(Window *pWnd) { _paint16->frameRect(r);// window frame if (wndStyle & SCI_WINDOWMGR_STYLE_TITLE) { - _paint16->frameRect(r); + 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.grow(-1); if (getSciVersion() <= SCI_VERSION_0_LATE) _paint16->fillRect(r, SCI_SCREEN_MASK_VISUAL, 8); // grey titlebar for SCI0 @@ -320,7 +324,7 @@ void GfxPorts::drawWindow(Window *pWnd) { _paint16->fillRect(r, SCI_SCREEN_MASK_VISUAL, 0); // black titlebar for SCI01+ if (!pWnd->title.empty()) { int16 oldcolor = getPort()->penClr; - penColor(255); + penColor(_screen->getColorWhite()); _text16->Box(pWnd->title.c_str(), 1, r, SCI_TEXT16_ALIGNMENT_CENTER, 0); penColor(oldcolor); } -- cgit v1.2.3