# HG changeset patch # User Richard M. Stallman # Date 834441062 0 # Node ID 8d01f71c47974681296879e3bae7ceea5eb2e1c8 # Parent 55f9d648be368066d0fc306ebc00367d4a7b7be7 (Fredraw_frame, remake_frame_glyphs) (direct_output_for_insert, change_frame_size): Support MSDOS frames. diff -r 55f9d648be36 -r 8d01f71c4797 src/dispnew.c --- a/src/dispnew.c Mon Jun 10 21:09:54 1996 +0000 +++ b/src/dispnew.c Mon Jun 10 21:11:02 1996 +0000 @@ -183,7 +183,8 @@ CHECK_LIVE_FRAME (frame, 0); f = XFRAME (frame); update_begin (f); - /* set_terminal_modes (); */ + if (FRAME_MSDOS_P (f)) + set_terminal_modes (); clear_frame (); clear_frame_records (f); update_end (f); @@ -399,7 +400,8 @@ FRAME_CURRENT_GLYPHS (frame) = make_frame_glyphs (frame, 0); FRAME_DESIRED_GLYPHS (frame) = make_frame_glyphs (frame, 0); FRAME_TEMP_GLYPHS (frame) = make_frame_glyphs (frame, 1); - if (! FRAME_TERMCAP_P (frame) || frame == selected_frame) + if (! FRAME_TERMCAP_P (frame) && ! FRAME_MSDOS_P (frame) + || frame == selected_frame) SET_FRAME_GARBAGED (frame); } @@ -1117,7 +1119,7 @@ #ifdef HAVE_FACES int dummy; - if (FRAME_WINDOW_P (frame)) + if (FRAME_WINDOW_P (frame) || FRAME_MSDOS_P (frame)) face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point, 0); #endif current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (frame, g, face); @@ -2103,12 +2105,12 @@ int newheight, newwidth, pretend; { Lisp_Object tail, frame; - if (FRAME_TERMCAP_P (f)) + if (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)) { - /* When using termcap, all frames use the same screen, - so a change in size affects all termcap frames. */ + /* When using termcap, or on MS-DOS, all frames use + the same screen, so a change in size affects all frames. */ FOR_EACH_FRAME (tail, frame) - if (FRAME_TERMCAP_P (XFRAME (frame))) + if (FRAME_TERMCAP_P (XFRAME (frame)) || FRAME_MSDOS_P (XFRAME (frame))) change_frame_size_1 (XFRAME (frame), newheight, newwidth, pretend, delay); }