MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / DebuggerSetColor

Function DebuggerSetColor

source/Debugger/Debugger_Color.cpp:176–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175
176bool DebuggerSetColor( const int iScheme, const int iColor, const COLORREF nColor )
177{
178 bool bStatus = false;
179 if ((g_iColorScheme < NUM_COLOR_SCHEMES) && (iColor < NUM_DEBUG_COLORS))
180 {
181 g_aColors[ iScheme ][ iColor ] = nColor;
182 bStatus = true;
183 }
184
185 // Propagate to console since it has its own copy of colors
186 if (iColor == FG_CONSOLE_OUTPUT)
187 {
188 COLORREF nConsole = DebuggerGetColor( FG_CONSOLE_OUTPUT );
189 g_anConsoleColor[ CONSOLE_COLOR_x ] = nConsole;
190 }
191
192 return bStatus;
193}
194
195
196#if _DEBUG

Callers 2

ConfigColorsResetFunction · 0.85
CmdConfigColorMonoFunction · 0.85

Calls 1

DebuggerGetColorFunction · 0.85

Tested by

no test coverage detected