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)
{
@ -1037,8 +1037,8 @@ void ColorizeFlags( bool bSet, int bg_default = BG_INFO )
}
else
{
DebuggerSetColorBG( DebuggerGetColor( bg_default ));
DebuggerSetColorFG( DebuggerGetColor( FG_INFO_TITLE ));
DebuggerSetColorBG( DebuggerGetColor( bg_default ));
DebuggerSetColorFG( DebuggerGetColor( fg_default ));
}
}