diff options
| author | Richard M. Stallman | 1996-06-10 21:11:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-10 21:11:02 +0000 |
| commit | 93e54836fdd311d4bacdbbac946e7660726306e6 (patch) | |
| tree | dfa0014840e8d744b98e0a0d3e65f8e8676f62b1 /src | |
| parent | 7b71f5ebfe1c1c38a9c59cf3f62361e1998af7d5 (diff) | |
| download | emacs-93e54836fdd311d4bacdbbac946e7660726306e6.tar.gz emacs-93e54836fdd311d4bacdbbac946e7660726306e6.zip | |
(Fredraw_frame, remake_frame_glyphs)
(direct_output_for_insert, change_frame_size): Support MSDOS frames.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index bb21ccbe1da..9e9c0ad625d 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -183,7 +183,8 @@ DEFUN ("redraw-frame", Fredraw_frame, Sredraw_frame, 1, 1, 0, | |||
| 183 | CHECK_LIVE_FRAME (frame, 0); | 183 | CHECK_LIVE_FRAME (frame, 0); |
| 184 | f = XFRAME (frame); | 184 | f = XFRAME (frame); |
| 185 | update_begin (f); | 185 | update_begin (f); |
| 186 | /* set_terminal_modes (); */ | 186 | if (FRAME_MSDOS_P (f)) |
| 187 | set_terminal_modes (); | ||
| 187 | clear_frame (); | 188 | clear_frame (); |
| 188 | clear_frame_records (f); | 189 | clear_frame_records (f); |
| 189 | update_end (f); | 190 | update_end (f); |
| @@ -399,7 +400,8 @@ remake_frame_glyphs (frame) | |||
| 399 | FRAME_CURRENT_GLYPHS (frame) = make_frame_glyphs (frame, 0); | 400 | FRAME_CURRENT_GLYPHS (frame) = make_frame_glyphs (frame, 0); |
| 400 | FRAME_DESIRED_GLYPHS (frame) = make_frame_glyphs (frame, 0); | 401 | FRAME_DESIRED_GLYPHS (frame) = make_frame_glyphs (frame, 0); |
| 401 | FRAME_TEMP_GLYPHS (frame) = make_frame_glyphs (frame, 1); | 402 | FRAME_TEMP_GLYPHS (frame) = make_frame_glyphs (frame, 1); |
| 402 | if (! FRAME_TERMCAP_P (frame) || frame == selected_frame) | 403 | if (! FRAME_TERMCAP_P (frame) && ! FRAME_MSDOS_P (frame) |
| 404 | || frame == selected_frame) | ||
| 403 | SET_FRAME_GARBAGED (frame); | 405 | SET_FRAME_GARBAGED (frame); |
| 404 | } | 406 | } |
| 405 | 407 | ||
| @@ -1117,7 +1119,7 @@ direct_output_for_insert (g) | |||
| 1117 | #ifdef HAVE_FACES | 1119 | #ifdef HAVE_FACES |
| 1118 | int dummy; | 1120 | int dummy; |
| 1119 | 1121 | ||
| 1120 | if (FRAME_WINDOW_P (frame)) | 1122 | if (FRAME_WINDOW_P (frame) || FRAME_MSDOS_P (frame)) |
| 1121 | face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point, 0); | 1123 | face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point, 0); |
| 1122 | #endif | 1124 | #endif |
| 1123 | current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (frame, g, face); | 1125 | current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (frame, g, face); |
| @@ -2103,12 +2105,12 @@ change_frame_size (f, newheight, newwidth, pretend, delay) | |||
| 2103 | int newheight, newwidth, pretend; | 2105 | int newheight, newwidth, pretend; |
| 2104 | { | 2106 | { |
| 2105 | Lisp_Object tail, frame; | 2107 | Lisp_Object tail, frame; |
| 2106 | if (FRAME_TERMCAP_P (f)) | 2108 | if (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)) |
| 2107 | { | 2109 | { |
| 2108 | /* When using termcap, all frames use the same screen, | 2110 | /* When using termcap, or on MS-DOS, all frames use |
| 2109 | so a change in size affects all termcap frames. */ | 2111 | the same screen, so a change in size affects all frames. */ |
| 2110 | FOR_EACH_FRAME (tail, frame) | 2112 | FOR_EACH_FRAME (tail, frame) |
| 2111 | if (FRAME_TERMCAP_P (XFRAME (frame))) | 2113 | if (FRAME_TERMCAP_P (XFRAME (frame)) || FRAME_MSDOS_P (XFRAME (frame))) |
| 2112 | change_frame_size_1 (XFRAME (frame), newheight, newwidth, | 2114 | change_frame_size_1 (XFRAME (frame), newheight, newwidth, |
| 2113 | pretend, delay); | 2115 | pretend, delay); |
| 2114 | } | 2116 | } |