From 48e482e6161266672796dea2b3e0c9ed8cf52f50 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 4 Oct 2008 09:22:56 +0000 Subject: [PATCH] (change_frame_size_1): Set FrameRows and FrameCols for MSDOS frames as well. --- src/ChangeLog | 5 +++++ src/dispnew.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4b18b9412dc..484dfc605d8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-10-04 Eli Zaretskii + + * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for + MSDOS frames as well. + 2008-10-02 Adrian Robert * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with diff --git a/src/dispnew.c b/src/dispnew.c index 33bbdca6700..afb60ab89d0 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -6356,7 +6356,9 @@ change_frame_size_1 (f, newheight, newwidth, pretend, delay, safe) set_window_height (FRAME_ROOT_WINDOW (f), newheight - FRAME_TOP_MARGIN (f), 2); - if (FRAME_TERMCAP_P (f) && !pretend) + /* MSDOS frames cannot PRETEND, as they change frame size by + manipulating video hardware. */ + if ((FRAME_TERMCAP_P (f) && !pretend) || FRAME_MSDOS_P (f)) FrameRows (FRAME_TTY (f)) = newheight; } @@ -6366,7 +6368,9 @@ change_frame_size_1 (f, newheight, newwidth, pretend, delay, safe) if (FRAME_HAS_MINIBUF_P (f)) set_window_width (FRAME_MINIBUF_WINDOW (f), new_frame_total_cols, 0); - if (FRAME_TERMCAP_P (f) && !pretend) + /* MSDOS frames cannot PRETEND, as they change frame size by + manipulating video hardware. */ + if ((FRAME_TERMCAP_P (f) && !pretend) || FRAME_MSDOS_P (f)) FrameCols (FRAME_TTY (f)) = newwidth; if (WINDOWP (f->tool_bar_window)) -- 2.39.5