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

Function DebuggerSetColorFG

source/Debugger/Debugger_Display.cpp:655–674  ·  view source on GitHub ↗

Font: Apple Text ===========================================================================

Source from the content-addressed store, hash-verified

653// Font: Apple Text
654//===========================================================================
655void DebuggerSetColorFG( COLORREF nRGB )
656{
657#if USE_APPLE_FONT
658 if (g_hConsoleBrushFG)
659 {
660 SelectObject( GetDebuggerMemDC(), GetStockObject(NULL_BRUSH) );
661 DeleteObject( g_hConsoleBrushFG );
662 g_hConsoleBrushFG = NULL;
663 }
664
665 g_hConsoleBrushFG = CreateSolidBrush(nRGB);
666
667 g_cConsoleBrushFG_r = nRGB & 0xFF;
668 g_cConsoleBrushFG_g = (nRGB>>8) & 0xFF;
669 g_cConsoleBrushFG_b = (nRGB>>16) & 0xFF;
670
671#else
672 SetTextColor( GetDebuggerMemDC(), nRGB );
673#endif
674}
675
676//===================================================
677void DebuggerSetColorBG( COLORREF nRGB, bool bTransparent )

Callers 15

DebuggerPrintColorFunction · 0.85
SetupColorsHiLoBitsFunction · 0.85
ColorizeFlagsFunction · 0.85
DrawBreakpointsFunction · 0.85
DrawConsoleCursorFunction · 0.85
DrawConsoleInputFunction · 0.85
DrawDisassemblyLineFunction · 0.85
DrawFlagsFunction · 0.85
DrawByte_SY6522Function · 0.85
DrawByte_AY8913Function · 0.85
DrawLine_MB_SUBUNITFunction · 0.85

Calls 1

GetDebuggerMemDCFunction · 0.85

Tested by

no test coverage detected