[Scummvm-cvs-logs] SF.net SVN: scummvm:[48798] scummvm/trunk/engines/sci/graphics/ports.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sun Apr 25 21:49:10 CEST 2010


Revision: 48798
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48798&view=rev
Author:   m_kiewitz
Date:     2010-04-25 19:49:10 +0000 (Sun, 25 Apr 2010)

Log Message:
-----------
SCI: draw a black line between titlebar and actual window content for SCI0, also replaced hardcoded white value (255) with screen specific value

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/ports.cpp

Modified: scummvm/trunk/engines/sci/graphics/ports.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/ports.cpp	2010-04-25 16:47:14 UTC (rev 48797)
+++ scummvm/trunk/engines/sci/graphics/ports.cpp	2010-04-25 19:49:10 UTC (rev 48798)
@@ -312,7 +312,11 @@
 			_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 @@
 					_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);
 				}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list