Font: Apple Text ===========================================================================
| 653 | // Font: Apple Text |
| 654 | //=========================================================================== |
| 655 | void 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 | //=================================================== |
| 677 | void DebuggerSetColorBG( COLORREF nRGB, bool bTransparent ) |
no test coverage detected