diff options
Diffstat (limited to 'src/dispnew.c')
| -rw-r--r-- | src/dispnew.c | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 3a78845fa56..5b8eaf4fa34 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -121,11 +121,12 @@ static int required_matrix_width (struct window *); | |||
| 121 | static void allocate_matrices_for_window_redisplay (struct window *); | 121 | static void allocate_matrices_for_window_redisplay (struct window *); |
| 122 | static int realloc_glyph_pool (struct glyph_pool *, struct dim); | 122 | static int realloc_glyph_pool (struct glyph_pool *, struct dim); |
| 123 | static void adjust_frame_glyphs (struct frame *); | 123 | static void adjust_frame_glyphs (struct frame *); |
| 124 | struct glyph_matrix *new_glyph_matrix (struct glyph_pool *); | 124 | static struct glyph_matrix *new_glyph_matrix (struct glyph_pool *); |
| 125 | static void free_glyph_matrix (struct glyph_matrix *); | 125 | static void free_glyph_matrix (struct glyph_matrix *); |
| 126 | static void adjust_glyph_matrix (struct window *, struct glyph_matrix *, | 126 | static void adjust_glyph_matrix (struct window *, struct glyph_matrix *, |
| 127 | int, int, struct dim); | 127 | int, int, struct dim); |
| 128 | static void change_frame_size_1 (struct frame *, int, int, int, int, int); | 128 | static void change_frame_size_1 (struct frame *, int, int, int, int, int); |
| 129 | static void increment_row_positions (struct glyph_row *, EMACS_INT, EMACS_INT); | ||
| 129 | static void swap_glyph_pointers (struct glyph_row *, struct glyph_row *); | 130 | static void swap_glyph_pointers (struct glyph_row *, struct glyph_row *); |
| 130 | #if GLYPH_DEBUG | 131 | #if GLYPH_DEBUG |
| 131 | static int glyph_row_slice_p (struct glyph_row *, struct glyph_row *); | 132 | static int glyph_row_slice_p (struct glyph_row *, struct glyph_row *); |
| @@ -163,6 +164,7 @@ static void mirror_line_dance (struct window *, int, int, int *, char *); | |||
| 163 | static int update_window_tree (struct window *, int); | 164 | static int update_window_tree (struct window *, int); |
| 164 | static int update_window (struct window *, int); | 165 | static int update_window (struct window *, int); |
| 165 | static int update_frame_1 (struct frame *, int, int); | 166 | static int update_frame_1 (struct frame *, int, int); |
| 167 | static int scrolling (struct frame *); | ||
| 166 | static void set_window_cursor_after_update (struct window *); | 168 | static void set_window_cursor_after_update (struct window *); |
| 167 | static void adjust_frame_glyphs_for_window_redisplay (struct frame *); | 169 | static void adjust_frame_glyphs_for_window_redisplay (struct frame *); |
| 168 | static void adjust_frame_glyphs_for_frame_redisplay (struct frame *); | 170 | static void adjust_frame_glyphs_for_frame_redisplay (struct frame *); |
| @@ -212,7 +214,7 @@ struct frame *last_nonminibuf_frame; | |||
| 212 | 214 | ||
| 213 | /* 1 means SIGWINCH happened when not safe. */ | 215 | /* 1 means SIGWINCH happened when not safe. */ |
| 214 | 216 | ||
| 215 | int delayed_size_change; | 217 | static int delayed_size_change; |
| 216 | 218 | ||
| 217 | /* 1 means glyph initialization has been completed at startup. */ | 219 | /* 1 means glyph initialization has been completed at startup. */ |
| 218 | 220 | ||
| @@ -234,8 +236,8 @@ struct glyph space_glyph; | |||
| 234 | /* Counts of allocated structures. These counts serve to diagnose | 236 | /* Counts of allocated structures. These counts serve to diagnose |
| 235 | memory leaks and double frees. */ | 237 | memory leaks and double frees. */ |
| 236 | 238 | ||
| 237 | int glyph_matrix_count; | 239 | static int glyph_matrix_count; |
| 238 | int glyph_pool_count; | 240 | static int glyph_pool_count; |
| 239 | 241 | ||
| 240 | /* If non-null, the frame whose frame matrices are manipulated. If | 242 | /* If non-null, the frame whose frame matrices are manipulated. If |
| 241 | null, window matrices are worked on. */ | 243 | null, window matrices are worked on. */ |
| @@ -383,7 +385,7 @@ safe_bcopy (const char *from, char *to, int size) | |||
| 383 | member `pool' of the glyph matrix structure returned is set to | 385 | member `pool' of the glyph matrix structure returned is set to |
| 384 | POOL, the structure is otherwise zeroed. */ | 386 | POOL, the structure is otherwise zeroed. */ |
| 385 | 387 | ||
| 386 | struct glyph_matrix * | 388 | static struct glyph_matrix * |
| 387 | new_glyph_matrix (struct glyph_pool *pool) | 389 | new_glyph_matrix (struct glyph_pool *pool) |
| 388 | { | 390 | { |
| 389 | struct glyph_matrix *result; | 391 | struct glyph_matrix *result; |
| @@ -1021,7 +1023,7 @@ blank_row (struct window *w, struct glyph_row *row, int y) | |||
| 1021 | the used count of the text area is zero. Such rows display line | 1023 | the used count of the text area is zero. Such rows display line |
| 1022 | ends. */ | 1024 | ends. */ |
| 1023 | 1025 | ||
| 1024 | void | 1026 | static void |
| 1025 | increment_row_positions (struct glyph_row *row, | 1027 | increment_row_positions (struct glyph_row *row, |
| 1026 | EMACS_INT delta, EMACS_INT delta_bytes) | 1028 | EMACS_INT delta, EMACS_INT delta_bytes) |
| 1027 | { | 1029 | { |
| @@ -3200,21 +3202,6 @@ DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, "", | |||
| 3200 | } | 3202 | } |
| 3201 | 3203 | ||
| 3202 | 3204 | ||
| 3203 | /* This is used when frame_garbaged is set. Call Fredraw_frame on all | ||
| 3204 | visible frames marked as garbaged. */ | ||
| 3205 | |||
| 3206 | void | ||
| 3207 | redraw_garbaged_frames (void) | ||
| 3208 | { | ||
| 3209 | Lisp_Object tail, frame; | ||
| 3210 | |||
| 3211 | FOR_EACH_FRAME (tail, frame) | ||
| 3212 | if (FRAME_VISIBLE_P (XFRAME (frame)) | ||
| 3213 | && FRAME_GARBAGED_P (XFRAME (frame))) | ||
| 3214 | Fredraw_frame (frame); | ||
| 3215 | } | ||
| 3216 | |||
| 3217 | |||
| 3218 | 3205 | ||
| 3219 | /*********************************************************************** | 3206 | /*********************************************************************** |
| 3220 | Frame Update | 3207 | Frame Update |
| @@ -4818,7 +4805,7 @@ update_frame_1 (struct frame *f, int force_p, int inhibit_id_p) | |||
| 4818 | 4805 | ||
| 4819 | /* Do line insertions/deletions on frame F for frame-based redisplay. */ | 4806 | /* Do line insertions/deletions on frame F for frame-based redisplay. */ |
| 4820 | 4807 | ||
| 4821 | int | 4808 | static int |
| 4822 | scrolling (struct frame *frame) | 4809 | scrolling (struct frame *frame) |
| 4823 | { | 4810 | { |
| 4824 | int unchanged_at_top, unchanged_at_bottom; | 4811 | int unchanged_at_top, unchanged_at_bottom; |