diff options
author | Martin Kiewitz | 2010-04-25 19:49:10 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-04-25 19:49:10 +0000 |
commit | 3005fffe784e0359cc5a6b92a159136d6ccb0df6 (patch) | |
tree | bd3f626d74de777ca7b303a49886cbb533d611e8 | |
parent | cc4bd9bf1cf65663a63bb8ccad04e626bbc4b9cf (diff) | |
download | scummvm-rg350-3005fffe784e0359cc5a6b92a159136d6ccb0df6.tar.gz scummvm-rg350-3005fffe784e0359cc5a6b92a159136d6ccb0df6.tar.bz2 scummvm-rg350-3005fffe784e0359cc5a6b92a159136d6ccb0df6.zip |
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
-rw-r--r-- | engines/sci/graphics/ports.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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); } |