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

Function DrawSubWindow_Console

source/Debugger/Debugger_Display.cpp:3377–3416  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3375
3376//===========================================================================
3377void DrawSubWindow_Console (Update_t bUpdate)
3378{
3379 if (! CanDrawDebugger())
3380 return;
3381
3382#if !USE_APPLE_FONT
3383 SelectObject( GetDebuggerMemDC(), g_aFontConfig[ FONT_CONSOLE ]._hFont );
3384#endif
3385
3386 if ((bUpdate & UPDATE_CONSOLE_DISPLAY)
3387 || (bUpdate & UPDATE_CONSOLE_INPUT))
3388 {
3389 DebuggerSetColorBG( DebuggerGetColor( BG_CONSOLE_OUTPUT ));
3390
3391// int nLines = MIN(g_nConsoleDisplayTotal - g_iConsoleDisplayStart, g_nConsoleDisplayHeight);
3392 int iLine = g_iConsoleDisplayStart + CONSOLE_FIRST_LINE;
3393 for (int y = 1; y < g_nConsoleDisplayLines ; y++ )
3394 {
3395 if (iLine <= (g_nConsoleDisplayTotal + CONSOLE_FIRST_LINE))
3396 {
3397 DebuggerSetColorFG( DebuggerGetColor( FG_CONSOLE_OUTPUT ));
3398 DrawConsoleLine( g_aConsoleDisplay[ iLine ], y );
3399 }
3400 else
3401 {
3402 // bugfix: 2.6.1.34
3403 // scrolled past top of console... Draw blank line
3404 DrawConsoleLine( NULL, y );
3405 }
3406 iLine++;
3407 }
3408
3409 DrawConsoleInput();
3410 }
3411
3412// if (bUpdate & UPDATE_CONSOLE_INPUT)
3413 {
3414// DrawConsoleInput();
3415 }
3416}
3417
3418//===========================================================================
3419void DrawSubWindow_Data (Update_t bUpdate)

Callers 1

UpdateDisplayFunction · 0.85

Calls 7

CanDrawDebuggerFunction · 0.85
GetDebuggerMemDCFunction · 0.85
DebuggerSetColorBGFunction · 0.85
DebuggerGetColorFunction · 0.85
DebuggerSetColorFGFunction · 0.85
DrawConsoleLineFunction · 0.85
DrawConsoleInputFunction · 0.85

Tested by

no test coverage detected