changeset 98497:6fa56eeb247c

(change_frame_size_1): Set FrameRows and FrameCols for MSDOS frames as well.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 04 Oct 2008 09:22:18 +0000
parents 44958ed3a501
children 43f948ece770
files src/dispnew.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Sat Oct 04 01:23:30 2008 +0000
+++ b/src/dispnew.c	Sat Oct 04 09:22:18 2008 +0000
@@ -6356,7 +6356,9 @@
 	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 @@
       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))