===========================================================================
| 4045 | |
| 4046 | //=========================================================================== |
| 4047 | void DrawSubWindow_Code ( int iWindow ) |
| 4048 | { |
| 4049 | int nLines = g_nDisasmWinHeight; |
| 4050 | |
| 4051 | // WindowSplit_t * pWindow = &g_aWindowConfig[ iWindow ]; |
| 4052 | |
| 4053 | // Check if we have a bad disasm |
| 4054 | // BUG: This still doesn't catch all cases |
| 4055 | // G FB53, SPACE, PgDn * |
| 4056 | // Note: DrawDisassemblyLine() has kludge. |
| 4057 | // DisasmCalcTopFromCurAddress( false ); |
| 4058 | // These should be functionally equivalent. |
| 4059 | // DisasmCalcTopFromCurAddress(); |
| 4060 | // DisasmCalcBotFromTopAddress(); |
| 4061 | #if !USE_APPLE_FONT |
| 4062 | SelectObject( GetDebuggerMemDC(), g_aFontConfig[ FONT_DISASM_DEFAULT ]._hFont ); |
| 4063 | #endif |
| 4064 | |
| 4065 | WORD nAddress = g_nDisasmTopAddress; // g_nDisasmCurAddress; |
| 4066 | for (int iLine = 0; iLine < nLines; iLine++ ) |
| 4067 | { |
| 4068 | nAddress += DrawDisassemblyLine( iLine, nAddress ); |
| 4069 | } |
| 4070 | |
| 4071 | #if !USE_APPLE_FONT |
| 4072 | SelectObject( GetDebuggerMemDC(), g_aFontConfig[ FONT_INFO ]._hFont ); |
| 4073 | #endif |
| 4074 | } |
no test coverage detected