Debugger: Extend ColorizeFlags() to support custom fg if not set

This commit is contained in:
michaelangel007 2017-05-10 09:47:45 -07:00
parent eb21f34ace
commit b155872f57

View File

@ -1028,7 +1028,7 @@ char ColorizeSpecialChar( char * sText, BYTE nData, const MemoryView_e iView,
return nChar;
}
void ColorizeFlags( bool bSet, int bg_default = BG_INFO )
void ColorizeFlags( bool bSet, int bg_default = BG_INFO, int fg_default = FG_INFO_TITLE )
{
if (bSet)
{
@ -1038,7 +1038,7 @@ void ColorizeFlags( bool bSet, int bg_default = BG_INFO )
else
{
DebuggerSetColorBG( DebuggerGetColor( bg_default ));
DebuggerSetColorFG( DebuggerGetColor( FG_INFO_TITLE ));
DebuggerSetColorFG( DebuggerGetColor( fg_default ));
}
}