From df8b135b52ebf38ec32ae337f4e911638eaf9782 Mon Sep 17 00:00:00 2001 From: Wanne Date: Thu, 7 Feb 2008 17:14:52 +0000 Subject: [PATCH] - bugfix (workaround): Most of the Sir-tech credits name were displayed in dark blue color. Now all credits name are set in "dark-white" color regardless of the font color code. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1784 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Credits.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Credits.cpp b/Credits.cpp index 0dd504df..fa5ef6d2 100644 --- a/Credits.cpp +++ b/Credits.cpp @@ -514,6 +514,9 @@ BOOLEAN EnterCreditsScreen() guiCreditScreenActiveFont = FONT12ARIAL; gubCreditScreenActiveColor = FONT_MCOLOR_DKWHITE; + + //gubCreditScreenActiveColor = FONT_MCOLOR_LTBLUE; + guiCreditScreenTitleFont = FONT14ARIAL; gubCreditScreenTitleColor = FONT_MCOLOR_RED; // guiCreditScreenActiveDisplayFlags = LEFT_JUSTIFIED; @@ -1449,6 +1452,9 @@ UINT32 GetAndHandleCreditCodeFromCodeString( STR16 pzCode ) { //new codes: + // WANNE: BUGFIX: Set the credit texts always to white + gubCreditScreenActiveColor = FONT_MCOLOR_DKWHITE; + //if the code is to change the delay between strings if( pzCode[0] == CRDT_DELAY_BN_STRINGS_CODE ) @@ -1528,7 +1534,10 @@ UINT32 GetAndHandleCreditCodeFromCodeString( STR16 pzCode ) else if( pzCode[0] == CRDT_ACTIVE_FONT_COLOR ) { //Get the new color for the active text - swscanf( &pzCode[1], L"%d%*s", &gubCreditScreenActiveColor ); + // WANNE: BUGFIX: We set the active font color at the beginning of this method. It is always "white" + //swscanf( &pzCode[1], L"%d%*s", &gubCreditScreenActiveColor ); + + //gubCreditScreenActiveColor = FONT_MCOLOR_LTBLUE; return( CRDT_NODE_NONE ); }