summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/os_win32.c10
-rw-r--r--src/version.c2
2 files changed, 9 insertions, 3 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index b56033cac..c5670afd3 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -1641,15 +1641,19 @@ WaitForChar(long msec, int ignore_input)
{
COORD dwSize = ir.Event.WindowBufferSizeEvent.dwSize;
- // Only call shell_resized() when the size actually change to
+ // Only call shell_resized() when the size actually changed to
// avoid the screen is cleared.
if (dwSize.X != Columns || dwSize.Y != Rows)
{
CONSOLE_SCREEN_BUFFER_INFO csbi;
GetConsoleScreenBufferInfo(g_hConOut, &csbi);
+ dwSize.X = csbi.srWindow.Right - csbi.srWindow.Left + 1;
dwSize.Y = csbi.srWindow.Bottom - csbi.srWindow.Top + 1;
- ResizeConBuf(g_hConOut, dwSize);
- shell_resized();
+ if (dwSize.X != Columns || dwSize.Y != Rows)
+ {
+ ResizeConBuf(g_hConOut, dwSize);
+ shell_resized();
+ }
}
}
else if (ir.EventType == MOUSE_EVENT
diff --git a/src/version.c b/src/version.c
index 97e303032..44020c1c3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2424,
+/**/
2423,
/**/
2422,