# HG changeset patch # User Eli Zaretskii # Date 1223112138 0 # Node ID 6fa56eeb247c30b9d057623f5d3238b49be9e9c9 # Parent 44958ed3a501a027ece5472fae4d9e7a36849b5b (change_frame_size_1): Set FrameRows and FrameCols for MSDOS frames as well. diff -r 44958ed3a501 -r 6fa56eeb247c src/dispnew.c --- 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))