diff options
| author | Alexander Gramiak | 2019-03-23 11:19:40 -0600 |
|---|---|---|
| committer | Alexander Gramiak | 2019-04-26 16:10:49 -0600 |
| commit | ff4e31fa328a2cee5197beb20f068eb021712b5c (patch) | |
| tree | d49388dd87c3cf11f6231baae8a85089b3344c0f /src/xterm.c | |
| parent | 86b6e91091ba14edb4811427fec8fe194f6520d4 (diff) | |
| download | emacs-ff4e31fa328a2cee5197beb20f068eb021712b5c.tar.gz emacs-ff4e31fa328a2cee5197beb20f068eb021712b5c.zip | |
Rename generic x_* procedures in xdisp.c
* src/xdisp.c (x_consider_frame_title, x_get_glyph_overhangs)
(x_produce_glyphs, x_write_glyphs, x_insert_glyphs)
(x_clear_end_of_line), x_fix_overlapping_area)
(x_update_cursor, x_clear_cursor, x_clear_window_mouse_face)
(x_draw_vertical_border, x_draw_right_divider, x_draw_bottom_divider)
(x_intersect_rectangles): Rename with a gui prefix to indicate
non-X-specific functionality.
* src/composite.c:
* src/dispextern.h:
* src/nsfns.m:
* src/nsterm.m:
* src/w32fns.c:
* src/w32term.c:
* src/window.c:
* src/xfns.c:
* src/xterm.c: Use the renamed procedures.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/xterm.c b/src/xterm.c index e85e8e35d44..5d4d2ca3b78 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -1168,9 +1168,9 @@ x_update_window_end (struct window *w, bool cursor_on_p, | |||
| 1168 | if (draw_window_fringes (w, true)) | 1168 | if (draw_window_fringes (w, true)) |
| 1169 | { | 1169 | { |
| 1170 | if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) | 1170 | if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) |
| 1171 | x_draw_right_divider (w); | 1171 | gui_draw_right_divider (w); |
| 1172 | else | 1172 | else |
| 1173 | x_draw_vertical_border (w); | 1173 | gui_draw_vertical_border (w); |
| 1174 | } | 1174 | } |
| 1175 | 1175 | ||
| 1176 | unblock_input (); | 1176 | unblock_input (); |
| @@ -3077,7 +3077,7 @@ x_draw_image_foreground (struct glyph_string *s) | |||
| 3077 | image_rect.y = y; | 3077 | image_rect.y = y; |
| 3078 | image_rect.width = s->slice.width; | 3078 | image_rect.width = s->slice.width; |
| 3079 | image_rect.height = s->slice.height; | 3079 | image_rect.height = s->slice.height; |
| 3080 | if (x_intersect_rectangles (&clip_rect, &image_rect, &r)) | 3080 | if (gui_intersect_rectangles (&clip_rect, &image_rect, &r)) |
| 3081 | x_composite_image (s, FRAME_X_DRAWABLE (s->f), | 3081 | x_composite_image (s, FRAME_X_DRAWABLE (s->f), |
| 3082 | s->slice.x + r.x - x, s->slice.y + r.y - y, | 3082 | s->slice.x + r.x - x, s->slice.y + r.y - y, |
| 3083 | r.x, r.y, r.width, r.height); | 3083 | r.x, r.y, r.width, r.height); |
| @@ -3091,7 +3091,7 @@ x_draw_image_foreground (struct glyph_string *s) | |||
| 3091 | image_rect.y = y; | 3091 | image_rect.y = y; |
| 3092 | image_rect.width = s->slice.width; | 3092 | image_rect.width = s->slice.width; |
| 3093 | image_rect.height = s->slice.height; | 3093 | image_rect.height = s->slice.height; |
| 3094 | if (x_intersect_rectangles (&clip_rect, &image_rect, &r)) | 3094 | if (gui_intersect_rectangles (&clip_rect, &image_rect, &r)) |
| 3095 | x_composite_image (s, FRAME_X_DRAWABLE (s->f), s->slice.x + r.x - x, s->slice.y + r.y - y, | 3095 | x_composite_image (s, FRAME_X_DRAWABLE (s->f), s->slice.x + r.x - x, s->slice.y + r.y - y, |
| 3096 | r.x, r.y, r.width, r.height); | 3096 | r.x, r.y, r.width, r.height); |
| 3097 | 3097 | ||
| @@ -3578,7 +3578,7 @@ x_draw_underwave (struct glyph_string *s) | |||
| 3578 | wave_clip.height = wave_height; | 3578 | wave_clip.height = wave_height; |
| 3579 | get_glyph_string_clip_rect (s, &string_clip); | 3579 | get_glyph_string_clip_rect (s, &string_clip); |
| 3580 | 3580 | ||
| 3581 | if (!x_intersect_rectangles (&wave_clip, &string_clip, &final_clip)) | 3581 | if (!gui_intersect_rectangles (&wave_clip, &string_clip, &final_clip)) |
| 3582 | return; | 3582 | return; |
| 3583 | 3583 | ||
| 3584 | XSetClipRectangles (s->display, s->gc, 0, 0, &final_clip, 1, Unsorted); | 3584 | XSetClipRectangles (s->display, s->gc, 0, 0, &final_clip, 1, Unsorted); |
| @@ -4309,7 +4309,7 @@ x_scroll_run (struct window *w, struct run *run) | |||
| 4309 | block_input (); | 4309 | block_input (); |
| 4310 | 4310 | ||
| 4311 | /* Cursor off. Will be switched on again in x_update_window_end. */ | 4311 | /* Cursor off. Will be switched on again in x_update_window_end. */ |
| 4312 | x_clear_cursor (w); | 4312 | gui_clear_cursor (w); |
| 4313 | 4313 | ||
| 4314 | #ifdef USE_CAIRO | 4314 | #ifdef USE_CAIRO |
| 4315 | if (FRAME_CR_CONTEXT (f)) | 4315 | if (FRAME_CR_CONTEXT (f)) |
| @@ -4370,7 +4370,7 @@ frame_highlight (struct frame *f) | |||
| 4370 | f->output_data.x->border_pixel); | 4370 | f->output_data.x->border_pixel); |
| 4371 | x_uncatch_errors (); | 4371 | x_uncatch_errors (); |
| 4372 | unblock_input (); | 4372 | unblock_input (); |
| 4373 | x_update_cursor (f, true); | 4373 | gui_update_cursor (f, true); |
| 4374 | x_set_frame_alpha (f); | 4374 | x_set_frame_alpha (f); |
| 4375 | } | 4375 | } |
| 4376 | 4376 | ||
| @@ -4388,7 +4388,7 @@ frame_unhighlight (struct frame *f) | |||
| 4388 | f->output_data.x->border_tile); | 4388 | f->output_data.x->border_tile); |
| 4389 | x_uncatch_errors (); | 4389 | x_uncatch_errors (); |
| 4390 | unblock_input (); | 4390 | unblock_input (); |
| 4391 | x_update_cursor (f, true); | 4391 | gui_update_cursor (f, true); |
| 4392 | x_set_frame_alpha (f); | 4392 | x_set_frame_alpha (f); |
| 4393 | } | 4393 | } |
| 4394 | 4394 | ||
| @@ -13077,18 +13077,18 @@ x_activate_timeout_atimer (void) | |||
| 13077 | static struct redisplay_interface x_redisplay_interface = | 13077 | static struct redisplay_interface x_redisplay_interface = |
| 13078 | { | 13078 | { |
| 13079 | x_frame_parm_handlers, | 13079 | x_frame_parm_handlers, |
| 13080 | x_produce_glyphs, | 13080 | gui_produce_glyphs, |
| 13081 | x_write_glyphs, | 13081 | gui_write_glyphs, |
| 13082 | x_insert_glyphs, | 13082 | gui_insert_glyphs, |
| 13083 | x_clear_end_of_line, | 13083 | gui_clear_end_of_line, |
| 13084 | x_scroll_run, | 13084 | x_scroll_run, |
| 13085 | x_after_update_window_line, | 13085 | x_after_update_window_line, |
| 13086 | x_update_window_begin, | 13086 | x_update_window_begin, |
| 13087 | x_update_window_end, | 13087 | x_update_window_end, |
| 13088 | x_flip_and_flush, | 13088 | x_flip_and_flush, |
| 13089 | x_clear_window_mouse_face, | 13089 | gui_clear_window_mouse_face, |
| 13090 | x_get_glyph_overhangs, | 13090 | gui_get_glyph_overhangs, |
| 13091 | x_fix_overlapping_area, | 13091 | gui_fix_overlapping_area, |
| 13092 | x_draw_fringe_bitmap, | 13092 | x_draw_fringe_bitmap, |
| 13093 | #ifdef USE_CAIRO | 13093 | #ifdef USE_CAIRO |
| 13094 | x_cr_define_fringe_bitmap, | 13094 | x_cr_define_fringe_bitmap, |