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

Function UpdateDisplay

source/Debugger/Debugger_Display.cpp:3936–4028  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

3934
3935//===========================================================================
3936void 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

Callers 7

ProcessClipboardCommandsFunction · 0.85
CmdConfigColorMonoFunction · 0.85
CmdZeroPageClearFunction · 0.85
DebugBeginFunction · 0.85
DebugContinueSteppingFunction · 0.85
DebuggerProcessKeyFunction · 0.85
DebugDisplayFunction · 0.85

Calls 13

GetDebuggerMemDCFunction · 0.85
DrawWindow_CodeFunction · 0.85
DrawWindow_ConsoleFunction · 0.85
DrawWindow_DataFunction · 0.85
DrawWindow_IOFunction · 0.85
DrawWindow_SourceFunction · 0.85
DrawWindow_SymbolsFunction · 0.85
DrawWindow_ZeroPageFunction · 0.85
DrawSubWindow_ConsoleFunction · 0.85
StretchBltMemToFrameDCFunction · 0.85

Tested by

no test coverage detected