[Scummvm-cvs-logs] SF.net SVN: scummvm:[47463] scummvm/trunk/engines/sci/graphics/windowmgr. cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Sat Jan 23 13:01:04 CET 2010
Revision: 47463
http://scummvm.svn.sourceforge.net/scummvm/?rev=47463&view=rev
Author: m_kiewitz
Date: 2010-01-23 12:01:04 +0000 (Sat, 23 Jan 2010)
Log Message:
-----------
SCI: SCI0 games have a grey titlebar
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/windowmgr.cpp
Modified: scummvm/trunk/engines/sci/graphics/windowmgr.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/windowmgr.cpp 2010-01-23 11:00:24 UTC (rev 47462)
+++ scummvm/trunk/engines/sci/graphics/windowmgr.cpp 2010-01-23 12:01:04 UTC (rev 47463)
@@ -231,7 +231,10 @@
if (wndStyle & SCI_WINDOWMGR_STYLE_TITLE) {
_gfx->FrameRect(r);
r.grow(-1);
- _gfx->FillRect(r, SCI_SCREEN_MASK_VISUAL, 0);
+ if (getSciVersion() <= SCI_VERSION_0_LATE)
+ _gfx->FillRect(r, SCI_SCREEN_MASK_VISUAL, 8); // grey titlebar for SCI0
+ else
+ _gfx->FillRect(r, SCI_SCREEN_MASK_VISUAL, 0); // black titlebar for SCI01+
if (!pWnd->title.empty()) {
int16 oldcolor = _gfx->GetPort()->penClr;
_gfx->PenColor(255);
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