===================================================
| 675 | |
| 676 | //=================================================== |
| 677 | void 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 | //=========================================================================== |
no test coverage detected