===========================================================================
| 3934 | |
| 3935 | //=========================================================================== |
| 3936 | void UpdateDisplay (Update_t bUpdate) |
| 3937 | { |
| 3938 | static int spDrawMutex = false; |
| 3939 | |
| 3940 | if (spDrawMutex) |
| 3941 | { |
| 3942 | #if DEBUG |
| 3943 | GetFrame().FrameMessageBox( "Already drawing!", "!", MB_OK ); |
| 3944 | #endif |
| 3945 | } |
| 3946 | spDrawMutex = true; |
| 3947 | |
| 3948 | // Hack: Full screen console scrolled, "erase" left over console lines |
| 3949 | if (g_iWindowThis == WINDOW_CONSOLE) |
| 3950 | bUpdate |= UPDATE_BACKGROUND; |
| 3951 | |
| 3952 | if (bUpdate & UPDATE_BACKGROUND) |
| 3953 | { |
| 3954 | #if USE_APPLE_FONT |
| 3955 | SetBkMode( GetDebuggerMemDC(), OPAQUE); |
| 3956 | SetBkColor(GetDebuggerMemDC(), RGB(0,0,0)); |
| 3957 | #else |
| 3958 | SelectObject( GetDebuggerMemDC(), g_aFontConfig[ FONT_INFO ]._hFont ); // g_hFontDebugger |
| 3959 | #endif |
| 3960 | } |
| 3961 | |
| 3962 | SetTextAlign( GetDebuggerMemDC(), TA_TOP | TA_LEFT); |
| 3963 | |
| 3964 | if ((bUpdate & UPDATE_BREAKPOINTS) |
| 3965 | // || (bUpdate & UPDATE_DISASM) |
| 3966 | || (bUpdate & UPDATE_FLAGS) |
| 3967 | || (bUpdate & UPDATE_MEM_DUMP) |
| 3968 | || (bUpdate & UPDATE_REGS) |
| 3969 | || (bUpdate & UPDATE_STACK) |
| 3970 | || (bUpdate & UPDATE_SYMBOLS) |
| 3971 | || (bUpdate & UPDATE_TARGETS) |
| 3972 | || (bUpdate & UPDATE_WATCH) |
| 3973 | || (bUpdate & UPDATE_ZERO_PAGE)) |
| 3974 | { |
| 3975 | bUpdate |= UPDATE_BACKGROUND; |
| 3976 | bUpdate |= UPDATE_CONSOLE_INPUT; |
| 3977 | } |
| 3978 | |
| 3979 | if (bUpdate & UPDATE_BACKGROUND) |
| 3980 | { |
| 3981 | if (g_iWindowThis != WINDOW_CONSOLE) |
| 3982 | { |
| 3983 | DrawWindowBackground_Main( g_iWindowThis ); |
| 3984 | DrawWindowBackground_Info( g_iWindowThis ); |
| 3985 | } |
| 3986 | } |
| 3987 | |
| 3988 | switch ( g_iWindowThis ) |
| 3989 | { |
| 3990 | case WINDOW_CODE: |
| 3991 | DrawWindow_Code( bUpdate ); |
| 3992 | break; |
| 3993 |
no test coverage detected