- Moved the V_InitFontColors() call earlier in the startup sequence so that

colored error messages appear colored in the startup window. Also lightened
  up the "Flat" red to contrast better with the startup background.


SVN r1424 (trunk)
This commit is contained in:
Randy Heit 2009-02-11 00:16:05 +00:00
parent 085be22a30
commit 0acc6a4ee3
7 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,8 @@
February 10, 2009
- Moved the V_InitFontColors() call earlier in the startup sequence so that
colored error messages appear colored in the startup window. Also lightened
up the "Flat" red to contrast better on the startup background.
February 9, 2009 February 9, 2009
- Changed I_InitInput() to acquire the IDirectInput8A interface by using - Changed I_InitInput() to acquire the IDirectInput8A interface by using
DirectInput8Create() instead of CoCreateInstance(). This allows the Steam DirectInput8Create() instead of CoCreateInstance(). This allows the Steam

View file

@ -2340,6 +2340,8 @@ void D_DoomMain (void)
// [RH] Initialize localizable strings. // [RH] Initialize localizable strings.
GStrings.LoadStrings (false); GStrings.LoadStrings (false);
V_InitFontColors ();
// [RH] Moved these up here so that we can do most of our // [RH] Moved these up here so that we can do most of our
// startup output in a fullscreen console. // startup output in a fullscreen console.

View file

@ -408,7 +408,7 @@ void FMapInfoParser::ParseOpenBrace()
switch(format_type) switch(format_type)
{ {
default: default:
format_type = sc.CheckString("{")? FMT_New : FMT_Old; format_type = sc.CheckString("{") ? FMT_New : FMT_Old;
if (format_type == FMT_New) if (format_type == FMT_New)
sc.SetCMode(true); sc.SetCMode(true);
break; break;

View file

@ -2104,7 +2104,6 @@ EColorRange V_ParseFontColor (const BYTE *&color_value, int normalcolor, int bol
void V_InitFonts() void V_InitFonts()
{ {
V_InitFontColors ();
V_InitCustomFonts (); V_InitCustomFonts ();
// load the heads-up font // load the heads-up font

View file

@ -134,5 +134,6 @@ EColorRange V_FindFontColor (FName name);
PalEntry V_LogColorFromColorRange (EColorRange range); PalEntry V_LogColorFromColorRange (EColorRange range);
EColorRange V_ParseFontColor (const BYTE *&color_value, int normalcolor, int boldcolor); EColorRange V_ParseFontColor (const BYTE *&color_value, int normalcolor, int boldcolor);
FFont *V_GetFont(const char *); FFont *V_GetFont(const char *);
void V_InitFontColors();
#endif //__V_FONT_H__ #endif //__V_FONT_H__

View file

@ -743,7 +743,7 @@ void ShowErrorPane(const char *text)
SendMessage (ConWindow, EM_EXGETSEL, 0, (LPARAM)&end); SendMessage (ConWindow, EM_EXGETSEL, 0, (LPARAM)&end);
ErrorIconChar = end.cpMax; ErrorIconChar = end.cpMax;
// Now start adding the actualy error message. // Now start adding the actual error message.
SendMessage (ConWindow, EM_REPLACESEL, FALSE, (LPARAM)"Execution could not continue.\n\n"); SendMessage (ConWindow, EM_REPLACESEL, FALSE, (LPARAM)"Execution could not continue.\n\n");
// Restore old charformat but with light yellow text. // Restore old charformat but with light yellow text.

View file

@ -65,7 +65,7 @@ Console:
#000000 #7F0000 0 127 #000000 #7F0000 0 127
#FF0000 #FFFEFE 128 256 #FF0000 #FFFEFE 128 256
Flat: Flat:
#DD0000 #FF5566
} }
Blue Blue