[Scummvm-cvs-logs] SF.net SVN: scummvm:[39737] scummvm/trunk/engines/sci/engine/kgraphics.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sun Mar 29 14:28:29 CEST 2009


Revision: 39737
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39737&view=rev
Author:   thebluegr
Date:     2009-03-29 12:28:24 +0000 (Sun, 29 Mar 2009)

Log Message:
-----------
Fixed the colors of the widgets in KQ5's options menu

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kgraphics.cpp

Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp	2009-03-29 12:11:10 UTC (rev 39736)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp	2009-03-29 12:28:24 UTC (rev 39737)
@@ -3105,7 +3105,12 @@
 	// TODO: in SCI1VGA the default colors for text and background are #0 (black)
 	// SCI0 case should be checked 
 	if (s->resmgr->_sciVersion >= SCI_VERSION_01_VGA) {
-		color0.visual = bg_color.visual = get_pic_color(s, 0);
+		// This priority check fixes the colors in the menus in KQ5
+		// TODO/FIXME: Is this correct?
+		if (color0.priority >= 0)
+			color0.visual = get_pic_color(s, 0);
+		if (bg_color.priority >= 0)
+			bg_color.visual = get_pic_color(s, 0);
 	}
 
 	if (textp.segment) {


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