From 7ab9884799e68d5c415c409c3ad73f050a783a99 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 4 Oct 2008 14:53:46 +0000 Subject: [PATCH] (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames as well as for TTY. --- src/ChangeLog | 3 +++ src/sysdep.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 50057069c0c..8485c24e645 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2008-10-04 Eli Zaretskii + * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames + as well as for TTY. + * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'. * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for diff --git a/src/sysdep.c b/src/sysdep.c index 953e451805e..b1d072e729f 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -1412,7 +1412,8 @@ init_sys_modes (tty_out) frame_garbaged = 1; FOR_EACH_FRAME (tail, frame) { - if (FRAME_TERMCAP_P (XFRAME (frame)) + if ((FRAME_TERMCAP_P (XFRAME (frame)) + || FRAME_MSDOS_P (XFRAME (frame))) && FRAME_TTY (XFRAME (frame)) == tty_out) FRAME_GARBAGED_P (XFRAME (frame)) = 1; } -- 2.39.5