mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 16:30:23 +00:00
Debugger: Extend ColorizeFlags() to support custom fg if not set
This commit is contained in:
parent
eb21f34ace
commit
b155872f57
@ -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 ));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user