CONSOLE_SCREEN_BUFFER_INFO csbi; /* hold current console buffer info */
SMALL_RECT srWindowRect; /* hold the new console size */
COORD coordScreen;
+ static int resized = FALSE;
#ifdef MCH_WRITE_DUMP
if (fdDump)
coordScreen.X = xSize;
coordScreen.Y = ySize;
- // In the new console call API in reverse order
- if (!vtp_working)
+ // In the new console call API, only the first time in reverse order
+ if (!vtp_working || resized)
{
ResizeWindow(hConsole, srWindowRect);
ResizeConBuf(hConsole, coordScreen);
{
ResizeConBuf(hConsole, coordScreen);
ResizeWindow(hConsole, srWindowRect);
+ resized = TRUE;
}
}