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

Function _DrawSoftSwitch

source/Debugger/Debugger_Display.cpp:2603–2625  ·  view source on GitHub ↗

2.7.0.7 Cleaned up display of soft-switches to show address. ===========================================================================

Source from the content-addressed store, hash-verified

2601// 2.7.0.7 Cleaned up display of soft-switches to show address.
2602//===========================================================================
2603void _DrawSoftSwitch( RECT & rect, int nAddress, bool bSet, const char *sPrefix, const char *sOn, const char *sOff, const char *sSuffix = NULL, int bg_default = BG_INFO )
2604{
2605 RECT temp = rect;
2606
2607 _DrawSoftSwitchAddress( temp, nAddress, bg_default );
2608
2609 if ( sPrefix )
2610 {
2611 DebuggerSetColorFG( DebuggerGetColor( FG_INFO_REG )); // light blue
2612 PrintTextCursorX( sPrefix, temp );
2613 }
2614
2615 // 2.9.0.3
2616 _DrawSoftSwitchHighlight( temp, bSet, sOn, sOff, bg_default );
2617
2618 DebuggerSetColorBG( DebuggerGetColor( bg_default ));
2619 DebuggerSetColorFG( DebuggerGetColor( FG_INFO_TITLE ));
2620 if ( sSuffix )
2621 PrintTextCursorX( sSuffix, temp );
2622
2623 rect.top += g_nFontHeight;
2624 rect.bottom += g_nFontHeight;
2625}
2626
2627// 2.9.0.8
2628//===========================================================================

Callers 3

_DrawTriStateSoftSwitchFunction · 0.85
DrawSoftSwitchesFunction · 0.85

Calls 6

_DrawSoftSwitchAddressFunction · 0.85
DebuggerSetColorFGFunction · 0.85
DebuggerGetColorFunction · 0.85
PrintTextCursorXFunction · 0.85
_DrawSoftSwitchHighlightFunction · 0.85
DebuggerSetColorBGFunction · 0.85

Tested by

no test coverage detected