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

Function DebuggerSetColorBG

source/Debugger/Debugger_Display.cpp:677–700  ·  view source on GitHub ↗

===================================================

Source from the content-addressed store, hash-verified

675
676//===================================================
677void DebuggerSetColorBG( COLORREF nRGB, bool bTransparent )
678{
679#if USE_APPLE_FONT
680 if (g_hConsoleBrushBG)
681 {
682 SelectObject( GetDebuggerMemDC(), GetStockObject(NULL_BRUSH) );
683 DeleteObject( g_hConsoleBrushBG );
684 g_hConsoleBrushBG = NULL;
685 }
686
687 if (! bTransparent)
688 {
689 g_hConsoleBrushBG = CreateSolidBrush( nRGB );
690 }
691
692 // Transparency seems to be never used...
693 g_cConsoleBrushBG_r = nRGB & 0xFF;
694 g_cConsoleBrushBG_g = (nRGB >> 8) & 0xFF;
695 g_cConsoleBrushBG_b = (nRGB >> 16) & 0xFF;
696
697#else
698 SetBkColor( GetDebuggerMemDC(), nRGB );
699#endif
700}
701
702// @param glyph Specifies a native glyph from the 16x16 chars Apple Font Texture.
703//===========================================================================

Callers 15

SetupColorsHiLoBitsFunction · 0.85
ColorizeFlagsFunction · 0.85
DrawBreakpointsFunction · 0.85
DrawConsoleCursorFunction · 0.85
DrawConsoleInputFunction · 0.85
DrawDisassemblyLineFunction · 0.85
DrawFlagsFunction · 0.85
DrawLine_MB_SUBUNITFunction · 0.85
DrawLine_AY8913_PAIRFunction · 0.85
DrawMemoryFunction · 0.85
DrawRegisterFunction · 0.85

Calls 1

GetDebuggerMemDCFunction · 0.85

Tested by

no test coverage detected