comparison src/dispnew.c @ 22309:41baef80bbbc

(Fredraw_frame): Don't erase frame or its glyph records if it hasn't got any.
author Karl Heuer <kwzh@gnu.org>
date Mon, 01 Jun 1998 03:12:04 +0000
parents b685f9451792
children 583c6bc7fe82
comparison
equal deleted inserted replaced
22308:87366acfb1e9 22309:41baef80bbbc
176 { 176 {
177 FRAME_PTR f; 177 FRAME_PTR f;
178 178
179 CHECK_LIVE_FRAME (frame, 0); 179 CHECK_LIVE_FRAME (frame, 0);
180 f = XFRAME (frame); 180 f = XFRAME (frame);
181 update_begin (f); 181
182 if (FRAME_MSDOS_P (f)) 182 /* Erase the frame and its glyph records--if it has any records.
183 set_terminal_modes (); 183 It may have none, in the case of the terminal frame
184 clear_frame (); 184 that initially exists but is never used
185 clear_frame_records (f); 185 when Emacs is using a window system. */
186 update_end (f); 186 if (FRAME_CURRENT_GLYPHS (f) != 0)
187 fflush (stdout); 187 {
188 update_begin (f);
189 if (FRAME_MSDOS_P (f))
190 set_terminal_modes ();
191 clear_frame ();
192 clear_frame_records (f);
193 update_end (f);
194 fflush (stdout);
195 }
196
188 windows_or_buffers_changed++; 197 windows_or_buffers_changed++;
189 /* Mark all windows as INaccurate, 198 /* Mark all windows as INaccurate,
190 so that every window will have its redisplay done. */ 199 so that every window will have its redisplay done. */
191 mark_window_display_accurate (FRAME_ROOT_WINDOW (f), 0); 200 mark_window_display_accurate (FRAME_ROOT_WINDOW (f), 0);
192 f->garbaged = 0; 201 f->garbaged = 0;