===========================================================================
| 3375 | |
| 3376 | //=========================================================================== |
| 3377 | void 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 | //=========================================================================== |
| 3419 | void DrawSubWindow_Data (Update_t bUpdate) |
no test coverage detected