2.7.0.7 Cleaned up display of soft-switches to show address. ===========================================================================
| 2601 | // 2.7.0.7 Cleaned up display of soft-switches to show address. |
| 2602 | //=========================================================================== |
| 2603 | void _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 | //=========================================================================== |
no test coverage detected