From b155872f571f05a7b7b6ac7917571748d77f0fe3 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Wed, 10 May 2017 09:47:45 -0700 Subject: [PATCH] Debugger: Extend ColorizeFlags() to support custom fg if not set --- source/Debugger/Debugger_Display.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Debugger/Debugger_Display.cpp b/source/Debugger/Debugger_Display.cpp index 7a5daeb4..2340909a 100644 --- a/source/Debugger/Debugger_Display.cpp +++ b/source/Debugger/Debugger_Display.cpp @@ -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 )); } }