diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/composite.c | 2 | ||||
| -rw-r--r-- | src/dispextern.h | 36 | ||||
| -rw-r--r-- | src/nsfns.m | 4 | ||||
| -rw-r--r-- | src/nsterm.m | 30 | ||||
| -rw-r--r-- | src/w32fns.c | 4 | ||||
| -rw-r--r-- | src/w32term.c | 26 | ||||
| -rw-r--r-- | src/window.c | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 91 | ||||
| -rw-r--r-- | src/xfns.c | 10 | ||||
| -rw-r--r-- | src/xterm.c | 30 |
10 files changed, 117 insertions, 118 deletions
diff --git a/src/composite.c b/src/composite.c index 88f1235f116..7d7ed3f4a69 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -176,7 +176,7 @@ get_composition_id (ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t nchars, | |||
| 176 | 176 | ||
| 177 | /* Maximum length of a string of glyphs. XftGlyphExtents limits | 177 | /* Maximum length of a string of glyphs. XftGlyphExtents limits |
| 178 | this to INT_MAX, and Emacs limits it further. Divide INT_MAX - 1 | 178 | this to INT_MAX, and Emacs limits it further. Divide INT_MAX - 1 |
| 179 | by 2 because x_produce_glyphs computes glyph_len * 2 + 1. Divide | 179 | by 2 because gui_produce_glyphs computes glyph_len * 2 + 1. Divide |
| 180 | the size by MAX_MULTIBYTE_LENGTH because encode_terminal_code | 180 | the size by MAX_MULTIBYTE_LENGTH because encode_terminal_code |
| 181 | multiplies glyph_len by MAX_MULTIBYTE_LENGTH. */ | 181 | multiplies glyph_len by MAX_MULTIBYTE_LENGTH. */ |
| 182 | enum { | 182 | enum { |
diff --git a/src/dispextern.h b/src/dispextern.h index 1a536563532..79ec4ce52e9 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3274,19 +3274,19 @@ extern void get_font_ascent_descent (struct font *, int *, int *); | |||
| 3274 | extern void dump_glyph_string (struct glyph_string *) EXTERNALLY_VISIBLE; | 3274 | extern void dump_glyph_string (struct glyph_string *) EXTERNALLY_VISIBLE; |
| 3275 | #endif | 3275 | #endif |
| 3276 | 3276 | ||
| 3277 | extern void x_get_glyph_overhangs (struct glyph *, struct frame *, | 3277 | extern void gui_get_glyph_overhangs (struct glyph *, struct frame *, |
| 3278 | int *, int *); | 3278 | int *, int *); |
| 3279 | extern struct font *font_for_underline_metrics (struct glyph_string *); | 3279 | extern struct font *font_for_underline_metrics (struct glyph_string *); |
| 3280 | extern void x_produce_glyphs (struct it *); | 3280 | extern void gui_produce_glyphs (struct it *); |
| 3281 | 3281 | ||
| 3282 | extern void x_write_glyphs (struct window *, struct glyph_row *, | 3282 | extern void gui_write_glyphs (struct window *, struct glyph_row *, |
| 3283 | struct glyph *, enum glyph_row_area, int); | 3283 | struct glyph *, enum glyph_row_area, int); |
| 3284 | extern void x_insert_glyphs (struct window *, struct glyph_row *, | 3284 | extern void gui_insert_glyphs (struct window *, struct glyph_row *, |
| 3285 | struct glyph *, enum glyph_row_area, int); | 3285 | struct glyph *, enum glyph_row_area, int); |
| 3286 | extern void x_clear_end_of_line (struct window *, struct glyph_row *, | 3286 | extern void gui_clear_end_of_line (struct window *, struct glyph_row *, |
| 3287 | enum glyph_row_area, int); | 3287 | enum glyph_row_area, int); |
| 3288 | extern void x_fix_overlapping_area (struct window *, struct glyph_row *, | 3288 | extern void gui_fix_overlapping_area (struct window *, struct glyph_row *, |
| 3289 | enum glyph_row_area, int); | 3289 | enum glyph_row_area, int); |
| 3290 | extern void draw_phys_cursor_glyph (struct window *, | 3290 | extern void draw_phys_cursor_glyph (struct window *, |
| 3291 | struct glyph_row *, | 3291 | struct glyph_row *, |
| 3292 | enum draw_glyphs_face); | 3292 | enum draw_glyphs_face); |
| @@ -3294,10 +3294,10 @@ extern void get_phys_cursor_geometry (struct window *, struct glyph_row *, | |||
| 3294 | struct glyph *, int *, int *, int *); | 3294 | struct glyph *, int *, int *, int *); |
| 3295 | extern void erase_phys_cursor (struct window *); | 3295 | extern void erase_phys_cursor (struct window *); |
| 3296 | extern void display_and_set_cursor (struct window *, bool, int, int, int, int); | 3296 | extern void display_and_set_cursor (struct window *, bool, int, int, int, int); |
| 3297 | extern void x_update_cursor (struct frame *, bool); | 3297 | extern void gui_update_cursor (struct frame *, bool); |
| 3298 | extern void x_clear_cursor (struct window *); | 3298 | extern void gui_clear_cursor (struct window *); |
| 3299 | extern void x_draw_vertical_border (struct window *w); | 3299 | extern void gui_draw_vertical_border (struct window *w); |
| 3300 | extern void x_draw_right_divider (struct window *w); | 3300 | extern void gui_draw_right_divider (struct window *w); |
| 3301 | 3301 | ||
| 3302 | extern int get_glyph_string_clip_rects (struct glyph_string *, | 3302 | extern int get_glyph_string_clip_rects (struct glyph_string *, |
| 3303 | NativeRectangle *, int); | 3303 | NativeRectangle *, int); |
| @@ -3309,11 +3309,11 @@ extern void handle_tool_bar_click (struct frame *, | |||
| 3309 | int, int, bool, int); | 3309 | int, int, bool, int); |
| 3310 | 3310 | ||
| 3311 | extern void expose_frame (struct frame *, int, int, int, int); | 3311 | extern void expose_frame (struct frame *, int, int, int, int); |
| 3312 | extern bool x_intersect_rectangles (XRectangle *, XRectangle *, XRectangle *); | 3312 | extern bool gui_intersect_rectangles (XRectangle *, XRectangle *, XRectangle *); |
| 3313 | #endif /* HAVE_WINDOW_SYSTEM */ | 3313 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 3314 | 3314 | ||
| 3315 | extern void note_mouse_highlight (struct frame *, int, int); | 3315 | extern void note_mouse_highlight (struct frame *, int, int); |
| 3316 | extern void x_clear_window_mouse_face (struct window *); | 3316 | extern void gui_clear_window_mouse_face (struct window *); |
| 3317 | extern void cancel_mouse_face (struct frame *); | 3317 | extern void cancel_mouse_face (struct frame *); |
| 3318 | extern bool clear_mouse_face (Mouse_HLInfo *); | 3318 | extern bool clear_mouse_face (Mouse_HLInfo *); |
| 3319 | extern bool cursor_in_mouse_face_p (struct window *w); | 3319 | extern bool cursor_in_mouse_face_p (struct window *w); |
diff --git a/src/nsfns.m b/src/nsfns.m index ee7598a1c7e..009e9d55e2b 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -342,8 +342,8 @@ x_set_cursor_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 342 | 342 | ||
| 343 | if (FRAME_VISIBLE_P (f)) | 343 | if (FRAME_VISIBLE_P (f)) |
| 344 | { | 344 | { |
| 345 | x_update_cursor (f, 0); | 345 | gui_update_cursor (f, 0); |
| 346 | x_update_cursor (f, 1); | 346 | gui_update_cursor (f, 1); |
| 347 | } | 347 | } |
| 348 | update_face_from_frame_parameter (f, Qcursor_color, arg); | 348 | update_face_from_frame_parameter (f, Qcursor_color, arg); |
| 349 | unblock_input (); | 349 | unblock_input (); |
diff --git a/src/nsterm.m b/src/nsterm.m index 81d36be6cc0..15316e23edc 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -1183,9 +1183,9 @@ ns_update_window_end (struct window *w, bool cursor_on_p, | |||
| 1183 | if (draw_window_fringes (w, 1)) | 1183 | if (draw_window_fringes (w, 1)) |
| 1184 | { | 1184 | { |
| 1185 | if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) | 1185 | if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) |
| 1186 | x_draw_right_divider (w); | 1186 | gui_draw_right_divider (w); |
| 1187 | else | 1187 | else |
| 1188 | x_draw_vertical_border (w); | 1188 | gui_draw_vertical_border (w); |
| 1189 | } | 1189 | } |
| 1190 | 1190 | ||
| 1191 | unblock_input (); | 1191 | unblock_input (); |
| @@ -1528,12 +1528,12 @@ ns_frame_rehighlight (struct frame *frame) | |||
| 1528 | { | 1528 | { |
| 1529 | if (old_highlight) | 1529 | if (old_highlight) |
| 1530 | { | 1530 | { |
| 1531 | x_update_cursor (old_highlight, 1); | 1531 | gui_update_cursor (old_highlight, 1); |
| 1532 | x_set_frame_alpha (old_highlight); | 1532 | x_set_frame_alpha (old_highlight); |
| 1533 | } | 1533 | } |
| 1534 | if (dpyinfo->x_highlight_frame) | 1534 | if (dpyinfo->x_highlight_frame) |
| 1535 | { | 1535 | { |
| 1536 | x_update_cursor (dpyinfo->x_highlight_frame, 1); | 1536 | gui_update_cursor (dpyinfo->x_highlight_frame, 1); |
| 1537 | x_set_frame_alpha (dpyinfo->x_highlight_frame); | 1537 | x_set_frame_alpha (dpyinfo->x_highlight_frame); |
| 1538 | } | 1538 | } |
| 1539 | } | 1539 | } |
| @@ -2607,7 +2607,7 @@ ns_define_frame_cursor (struct frame *f, Cursor cursor) | |||
| 2607 | [[view window] invalidateCursorRectsForView: view]; | 2607 | [[view window] invalidateCursorRectsForView: view]; |
| 2608 | /* Redisplay assumes this function also draws the changed frame | 2608 | /* Redisplay assumes this function also draws the changed frame |
| 2609 | cursor, but this function doesn't, so do it explicitly. */ | 2609 | cursor, but this function doesn't, so do it explicitly. */ |
| 2610 | x_update_cursor (f, 1); | 2610 | gui_update_cursor (f, 1); |
| 2611 | } | 2611 | } |
| 2612 | } | 2612 | } |
| 2613 | 2613 | ||
| @@ -2885,7 +2885,7 @@ ns_scroll_run (struct window *w, struct run *run) | |||
| 2885 | 2885 | ||
| 2886 | block_input (); | 2886 | block_input (); |
| 2887 | 2887 | ||
| 2888 | x_clear_cursor (w); | 2888 | gui_clear_cursor (w); |
| 2889 | 2889 | ||
| 2890 | { | 2890 | { |
| 2891 | NSRect srcRect = NSMakeRect (x, from_y, width, height); | 2891 | NSRect srcRect = NSMakeRect (x, from_y, width, height); |
| @@ -5099,7 +5099,7 @@ ns_initialize_display_info (struct ns_display_info *dpyinfo) | |||
| 5099 | 5099 | ||
| 5100 | 5100 | ||
| 5101 | /* This and next define (many of the) public functions in this file. */ | 5101 | /* This and next define (many of the) public functions in this file. */ |
| 5102 | /* x_... are generic versions in xdisp.c that we, and other terms, get away | 5102 | /* gui_* are generic versions in xdisp.c that we, and other terms, get away |
| 5103 | with using despite presence in the "system dependent" redisplay | 5103 | with using despite presence in the "system dependent" redisplay |
| 5104 | interface. In addition, many of the ns_ methods have code that is | 5104 | interface. In addition, many of the ns_ methods have code that is |
| 5105 | shared with all terms, indicating need for further refactoring. */ | 5105 | shared with all terms, indicating need for further refactoring. */ |
| @@ -5107,18 +5107,18 @@ extern frame_parm_handler ns_frame_parm_handlers[]; | |||
| 5107 | static struct redisplay_interface ns_redisplay_interface = | 5107 | static struct redisplay_interface ns_redisplay_interface = |
| 5108 | { | 5108 | { |
| 5109 | ns_frame_parm_handlers, | 5109 | ns_frame_parm_handlers, |
| 5110 | x_produce_glyphs, | 5110 | gui_produce_glyphs, |
| 5111 | x_write_glyphs, | 5111 | gui_write_glyphs, |
| 5112 | x_insert_glyphs, | 5112 | gui_insert_glyphs, |
| 5113 | x_clear_end_of_line, | 5113 | gui_clear_end_of_line, |
| 5114 | ns_scroll_run, | 5114 | ns_scroll_run, |
| 5115 | ns_after_update_window_line, | 5115 | ns_after_update_window_line, |
| 5116 | ns_update_window_begin, | 5116 | ns_update_window_begin, |
| 5117 | ns_update_window_end, | 5117 | ns_update_window_end, |
| 5118 | 0, /* flush_display */ | 5118 | 0, /* flush_display */ |
| 5119 | x_clear_window_mouse_face, | 5119 | gui_clear_window_mouse_face, |
| 5120 | x_get_glyph_overhangs, | 5120 | gui_get_glyph_overhangs, |
| 5121 | x_fix_overlapping_area, | 5121 | gui_fix_overlapping_area, |
| 5122 | ns_draw_fringe_bitmap, | 5122 | ns_draw_fringe_bitmap, |
| 5123 | 0, /* define_fringe_bitmap */ /* FIXME: simplify ns_draw_fringe_bitmap */ | 5123 | 0, /* define_fringe_bitmap */ /* FIXME: simplify ns_draw_fringe_bitmap */ |
| 5124 | 0, /* destroy_fringe_bitmap */ | 5124 | 0, /* destroy_fringe_bitmap */ |
| @@ -7249,7 +7249,7 @@ not_in_argv (NSString *arg) | |||
| 7249 | from sole-frame Emacs to get hollow box to show. */ | 7249 | from sole-frame Emacs to get hollow box to show. */ |
| 7250 | if (!windowClosing && [[self window] isVisible] == YES) | 7250 | if (!windowClosing && [[self window] isVisible] == YES) |
| 7251 | { | 7251 | { |
| 7252 | x_update_cursor (emacsframe, 1); | 7252 | gui_update_cursor (emacsframe, 1); |
| 7253 | x_set_frame_alpha (emacsframe); | 7253 | x_set_frame_alpha (emacsframe); |
| 7254 | } | 7254 | } |
| 7255 | 7255 | ||
diff --git a/src/w32fns.c b/src/w32fns.c index af82b463059..814998f5f2f 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -1514,8 +1514,8 @@ x_set_cursor_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 1514 | 1514 | ||
| 1515 | if (FRAME_VISIBLE_P (f)) | 1515 | if (FRAME_VISIBLE_P (f)) |
| 1516 | { | 1516 | { |
| 1517 | x_update_cursor (f, 0); | 1517 | gui_update_cursor (f, 0); |
| 1518 | x_update_cursor (f, 1); | 1518 | gui_update_cursor (f, 1); |
| 1519 | } | 1519 | } |
| 1520 | } | 1520 | } |
| 1521 | 1521 | ||
diff --git a/src/w32term.c b/src/w32term.c index bb1f0bad018..a43d43c5583 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -363,7 +363,7 @@ w32_draw_underwave (struct glyph_string *s, COLORREF color) | |||
| 363 | get_glyph_string_clip_rect (s, &w32_string_clip); | 363 | get_glyph_string_clip_rect (s, &w32_string_clip); |
| 364 | CONVERT_TO_XRECT (string_clip, w32_string_clip); | 364 | CONVERT_TO_XRECT (string_clip, w32_string_clip); |
| 365 | 365 | ||
| 366 | if (!x_intersect_rectangles (&wave_clip, &string_clip, &final_clip)) | 366 | if (!gui_intersect_rectangles (&wave_clip, &string_clip, &final_clip)) |
| 367 | return; | 367 | return; |
| 368 | 368 | ||
| 369 | hp = CreatePen (PS_SOLID, thickness, color); | 369 | hp = CreatePen (PS_SOLID, thickness, color); |
| @@ -713,9 +713,9 @@ x_update_window_end (struct window *w, bool cursor_on_p, | |||
| 713 | if (draw_window_fringes (w, true)) | 713 | if (draw_window_fringes (w, true)) |
| 714 | { | 714 | { |
| 715 | if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) | 715 | if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) |
| 716 | x_draw_right_divider (w); | 716 | gui_draw_right_divider (w); |
| 717 | else | 717 | else |
| 718 | x_draw_vertical_border (w); | 718 | gui_draw_vertical_border (w); |
| 719 | } | 719 | } |
| 720 | 720 | ||
| 721 | unblock_input (); | 721 | unblock_input (); |
| @@ -2863,7 +2863,7 @@ x_scroll_run (struct window *w, struct run *run) | |||
| 2863 | block_input (); | 2863 | block_input (); |
| 2864 | 2864 | ||
| 2865 | /* Cursor off. Will be switched on again in x_update_window_end. */ | 2865 | /* Cursor off. Will be switched on again in x_update_window_end. */ |
| 2866 | x_clear_cursor (w); | 2866 | gui_clear_cursor (w); |
| 2867 | 2867 | ||
| 2868 | { | 2868 | { |
| 2869 | RECT from; | 2869 | RECT from; |
| @@ -2906,14 +2906,14 @@ x_scroll_run (struct window *w, struct run *run) | |||
| 2906 | static void | 2906 | static void |
| 2907 | frame_highlight (struct frame *f) | 2907 | frame_highlight (struct frame *f) |
| 2908 | { | 2908 | { |
| 2909 | x_update_cursor (f, 1); | 2909 | gui_update_cursor (f, 1); |
| 2910 | x_set_frame_alpha (f); | 2910 | x_set_frame_alpha (f); |
| 2911 | } | 2911 | } |
| 2912 | 2912 | ||
| 2913 | static void | 2913 | static void |
| 2914 | frame_unhighlight (struct frame *f) | 2914 | frame_unhighlight (struct frame *f) |
| 2915 | { | 2915 | { |
| 2916 | x_update_cursor (f, 1); | 2916 | gui_update_cursor (f, 1); |
| 2917 | x_set_frame_alpha (f); | 2917 | x_set_frame_alpha (f); |
| 2918 | } | 2918 | } |
| 2919 | 2919 | ||
| @@ -7092,18 +7092,18 @@ extern frame_parm_handler w32_frame_parm_handlers[]; | |||
| 7092 | static struct redisplay_interface w32_redisplay_interface = | 7092 | static struct redisplay_interface w32_redisplay_interface = |
| 7093 | { | 7093 | { |
| 7094 | w32_frame_parm_handlers, | 7094 | w32_frame_parm_handlers, |
| 7095 | x_produce_glyphs, | 7095 | gui_produce_glyphs, |
| 7096 | x_write_glyphs, | 7096 | gui_write_glyphs, |
| 7097 | x_insert_glyphs, | 7097 | gui_insert_glyphs, |
| 7098 | x_clear_end_of_line, | 7098 | gui_clear_end_of_line, |
| 7099 | x_scroll_run, | 7099 | x_scroll_run, |
| 7100 | x_after_update_window_line, | 7100 | x_after_update_window_line, |
| 7101 | x_update_window_begin, | 7101 | x_update_window_begin, |
| 7102 | x_update_window_end, | 7102 | x_update_window_end, |
| 7103 | 0, /* flush_display */ | 7103 | 0, /* flush_display */ |
| 7104 | x_clear_window_mouse_face, | 7104 | gui_clear_window_mouse_face, |
| 7105 | x_get_glyph_overhangs, | 7105 | gui_get_glyph_overhangs, |
| 7106 | x_fix_overlapping_area, | 7106 | gui_fix_overlapping_area, |
| 7107 | w32_draw_fringe_bitmap, | 7107 | w32_draw_fringe_bitmap, |
| 7108 | w32_define_fringe_bitmap, | 7108 | w32_define_fringe_bitmap, |
| 7109 | w32_destroy_fringe_bitmap, | 7109 | w32_destroy_fringe_bitmap, |
diff --git a/src/window.c b/src/window.c index ef2ed638508..05340ea439f 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -220,7 +220,7 @@ static void | |||
| 220 | wset_update_mode_line (struct window *w) | 220 | wset_update_mode_line (struct window *w) |
| 221 | { | 221 | { |
| 222 | /* If this window is the selected window on its frame, set the | 222 | /* If this window is the selected window on its frame, set the |
| 223 | global variable update_mode_lines, so that x_consider_frame_title | 223 | global variable update_mode_lines, so that gui_consider_frame_title |
| 224 | will consider this frame's title for redisplay. */ | 224 | will consider this frame's title for redisplay. */ |
| 225 | Lisp_Object fselected_window = XFRAME (WINDOW_FRAME (w))->selected_window; | 225 | Lisp_Object fselected_window = XFRAME (WINDOW_FRAME (w))->selected_window; |
| 226 | 226 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index c77a98023da..7086e104a27 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -491,7 +491,7 @@ int windows_or_buffers_changed; | |||
| 491 | 491 | ||
| 492 | Since the frame title uses the same %-constructs as the mode line | 492 | Since the frame title uses the same %-constructs as the mode line |
| 493 | (except %c, %C, and %l), if this variable is non-zero, we also consider | 493 | (except %c, %C, and %l), if this variable is non-zero, we also consider |
| 494 | redisplaying the title of each frame, see x_consider_frame_title. | 494 | redisplaying the title of each frame, see gui_consider_frame_title. |
| 495 | 495 | ||
| 496 | The `redisplay' bits are the same as those used for | 496 | The `redisplay' bits are the same as those used for |
| 497 | windows_or_buffers_changed, and setting windows_or_buffers_changed also | 497 | windows_or_buffers_changed, and setting windows_or_buffers_changed also |
| @@ -900,7 +900,7 @@ static int underlying_face_id (struct it *); | |||
| 900 | #ifdef HAVE_WINDOW_SYSTEM | 900 | #ifdef HAVE_WINDOW_SYSTEM |
| 901 | 901 | ||
| 902 | static void update_tool_bar (struct frame *, bool); | 902 | static void update_tool_bar (struct frame *, bool); |
| 903 | static void x_draw_bottom_divider (struct window *w); | 903 | static void gui_draw_bottom_divider (struct window *w); |
| 904 | static void notice_overwritten_cursor (struct window *, | 904 | static void notice_overwritten_cursor (struct window *, |
| 905 | enum glyph_row_area, | 905 | enum glyph_row_area, |
| 906 | int, int, int, int); | 906 | int, int, int, int); |
| @@ -2139,7 +2139,7 @@ get_glyph_string_clip_rects (struct glyph_string *s, NativeRectangle *rects, int | |||
| 2139 | rc.width = s->w->phys_cursor_width; | 2139 | rc.width = s->w->phys_cursor_width; |
| 2140 | rc.height = s->w->phys_cursor_height; | 2140 | rc.height = s->w->phys_cursor_height; |
| 2141 | 2141 | ||
| 2142 | x_intersect_rectangles (&r_save, &rc, &r); | 2142 | gui_intersect_rectangles (&r_save, &rc, &r); |
| 2143 | } | 2143 | } |
| 2144 | } | 2144 | } |
| 2145 | else | 2145 | else |
| @@ -2200,7 +2200,7 @@ get_glyph_string_clip_rects (struct glyph_string *s, NativeRectangle *rects, int | |||
| 2200 | { | 2200 | { |
| 2201 | XRectangle r_save = r; | 2201 | XRectangle r_save = r; |
| 2202 | 2202 | ||
| 2203 | if (! x_intersect_rectangles (&r_save, s->row->clip, &r)) | 2203 | if (! gui_intersect_rectangles (&r_save, s->row->clip, &r)) |
| 2204 | r.width = 0; | 2204 | r.width = 0; |
| 2205 | } | 2205 | } |
| 2206 | 2206 | ||
| @@ -6932,7 +6932,7 @@ static next_element_function const get_next_element[NUM_IT_METHODS] = | |||
| 6932 | method symbol. By side-effect, update it->what and | 6932 | method symbol. By side-effect, update it->what and |
| 6933 | it->glyphless_method. This function is called from | 6933 | it->glyphless_method. This function is called from |
| 6934 | get_next_display_element for each character element, and from | 6934 | get_next_display_element for each character element, and from |
| 6935 | x_produce_glyphs when no suitable font was found. */ | 6935 | gui_produce_glyphs when no suitable font was found. */ |
| 6936 | 6936 | ||
| 6937 | Lisp_Object | 6937 | Lisp_Object |
| 6938 | lookup_glyphless_char_display (int c, struct it *it) | 6938 | lookup_glyphless_char_display (int c, struct it *it) |
| @@ -9630,7 +9630,7 @@ move_it_to (struct it *it, ptrdiff_t to_charpos, int to_x, int to_y, int to_vpos | |||
| 9630 | /* When display_line produces a continued line | 9630 | /* When display_line produces a continued line |
| 9631 | that ends in a TAB, it skips a tab stop that | 9631 | that ends in a TAB, it skips a tab stop that |
| 9632 | is closer than the font's space character | 9632 | is closer than the font's space character |
| 9633 | width (see x_produce_glyphs where it produces | 9633 | width (see gui_produce_glyphs where it produces |
| 9634 | the stretch glyph which represents a TAB). | 9634 | the stretch glyph which represents a TAB). |
| 9635 | We need to reproduce the same logic here. */ | 9635 | We need to reproduce the same logic here. */ |
| 9636 | eassert (face_font); | 9636 | eassert (face_font); |
| @@ -12005,7 +12005,7 @@ store_mode_line_noprop (const char *string, int field_width, int precision) | |||
| 12005 | frame_title_format. */ | 12005 | frame_title_format. */ |
| 12006 | 12006 | ||
| 12007 | static void | 12007 | static void |
| 12008 | x_consider_frame_title (Lisp_Object frame) | 12008 | gui_consider_frame_title (Lisp_Object frame) |
| 12009 | { | 12009 | { |
| 12010 | struct frame *f = XFRAME (frame); | 12010 | struct frame *f = XFRAME (frame); |
| 12011 | 12011 | ||
| @@ -12152,7 +12152,7 @@ prepare_menu_bars (void) | |||
| 12152 | || FRAME_VISIBLE_P (f) == 1 | 12152 | || FRAME_VISIBLE_P (f) == 1 |
| 12153 | /* Exclude TTY frames that are obscured because they | 12153 | /* Exclude TTY frames that are obscured because they |
| 12154 | are not the top frame on their console. This is | 12154 | are not the top frame on their console. This is |
| 12155 | because x_consider_frame_title actually switches | 12155 | because gui_consider_frame_title actually switches |
| 12156 | to the frame, which for TTY frames means it is | 12156 | to the frame, which for TTY frames means it is |
| 12157 | marked as garbaged, and will be completely | 12157 | marked as garbaged, and will be completely |
| 12158 | redrawn on the next redisplay cycle. This causes | 12158 | redrawn on the next redisplay cycle. This causes |
| @@ -12160,7 +12160,7 @@ prepare_menu_bars (void) | |||
| 12160 | are more than one of them, even though nothing | 12160 | are more than one of them, even though nothing |
| 12161 | should be changed on display. */ | 12161 | should be changed on display. */ |
| 12162 | || (FRAME_VISIBLE_P (f) == 2 && FRAME_WINDOW_P (f)))) | 12162 | || (FRAME_VISIBLE_P (f) == 2 && FRAME_WINDOW_P (f)))) |
| 12163 | x_consider_frame_title (frame); | 12163 | gui_consider_frame_title (frame); |
| 12164 | } | 12164 | } |
| 12165 | } | 12165 | } |
| 12166 | #endif /* HAVE_WINDOW_SYSTEM */ | 12166 | #endif /* HAVE_WINDOW_SYSTEM */ |
| @@ -17688,7 +17688,7 @@ redisplay_window (Lisp_Object window, bool just_this_one_p) | |||
| 17688 | ignore_mouse_drag_p = true; | 17688 | ignore_mouse_drag_p = true; |
| 17689 | #endif | 17689 | #endif |
| 17690 | } | 17690 | } |
| 17691 | x_consider_frame_title (w->frame); | 17691 | gui_consider_frame_title (w->frame); |
| 17692 | #endif | 17692 | #endif |
| 17693 | } | 17693 | } |
| 17694 | 17694 | ||
| @@ -17703,16 +17703,16 @@ redisplay_window (Lisp_Object window, bool just_this_one_p) | |||
| 17703 | if (draw_window_fringes (w, true)) | 17703 | if (draw_window_fringes (w, true)) |
| 17704 | { | 17704 | { |
| 17705 | if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) | 17705 | if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) |
| 17706 | x_draw_right_divider (w); | 17706 | gui_draw_right_divider (w); |
| 17707 | else | 17707 | else |
| 17708 | x_draw_vertical_border (w); | 17708 | gui_draw_vertical_border (w); |
| 17709 | } | 17709 | } |
| 17710 | unblock_input (); | 17710 | unblock_input (); |
| 17711 | update_end (f); | 17711 | update_end (f); |
| 17712 | } | 17712 | } |
| 17713 | 17713 | ||
| 17714 | if (WINDOW_BOTTOM_DIVIDER_WIDTH (w)) | 17714 | if (WINDOW_BOTTOM_DIVIDER_WIDTH (w)) |
| 17715 | x_draw_bottom_divider (w); | 17715 | gui_draw_bottom_divider (w); |
| 17716 | #endif /* HAVE_WINDOW_SYSTEM */ | 17716 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 17717 | 17717 | ||
| 17718 | /* We go to this label, with fonts_changed set, if it is | 17718 | /* We go to this label, with fonts_changed set, if it is |
| @@ -19156,7 +19156,7 @@ try_window_id (struct window *w) | |||
| 19156 | + window_internal_height (w)); | 19156 | + window_internal_height (w)); |
| 19157 | 19157 | ||
| 19158 | #if defined (HAVE_GPM) || defined (MSDOS) | 19158 | #if defined (HAVE_GPM) || defined (MSDOS) |
| 19159 | x_clear_window_mouse_face (w); | 19159 | gui_clear_window_mouse_face (w); |
| 19160 | #endif | 19160 | #endif |
| 19161 | /* Perform the operation on the screen. */ | 19161 | /* Perform the operation on the screen. */ |
| 19162 | if (dvpos > 0) | 19162 | if (dvpos > 0) |
| @@ -20180,7 +20180,7 @@ append_space_for_newline (struct it *it, bool default_face_p) | |||
| 20180 | it->object = saved_object; /* get_it_property needs this */ | 20180 | it->object = saved_object; /* get_it_property needs this */ |
| 20181 | normal_char_ascent_descent (font, -1, &it->ascent, &it->descent); | 20181 | normal_char_ascent_descent (font, -1, &it->ascent, &it->descent); |
| 20182 | /* Must do a subset of line height processing from | 20182 | /* Must do a subset of line height processing from |
| 20183 | x_produce_glyph for newline characters. */ | 20183 | gui_produce_glyph for newline characters. */ |
| 20184 | height = get_it_property (it, Qline_height); | 20184 | height = get_it_property (it, Qline_height); |
| 20185 | if (CONSP (height) | 20185 | if (CONSP (height) |
| 20186 | && CONSP (XCDR (height)) | 20186 | && CONSP (XCDR (height)) |
| @@ -26266,7 +26266,7 @@ normal_char_height (struct font *font, int c) | |||
| 26266 | assumed to be zero. */ | 26266 | assumed to be zero. */ |
| 26267 | 26267 | ||
| 26268 | void | 26268 | void |
| 26269 | x_get_glyph_overhangs (struct glyph *glyph, struct frame *f, int *left, int *right) | 26269 | gui_get_glyph_overhangs (struct glyph *glyph, struct frame *f, int *left, int *right) |
| 26270 | { | 26270 | { |
| 26271 | *left = *right = 0; | 26271 | *left = *right = 0; |
| 26272 | 26272 | ||
| @@ -26356,7 +26356,7 @@ left_overwriting (struct glyph_string *s) | |||
| 26356 | for (i = first - 1; i >= 0; --i) | 26356 | for (i = first - 1; i >= 0; --i) |
| 26357 | { | 26357 | { |
| 26358 | int left, right; | 26358 | int left, right; |
| 26359 | x_get_glyph_overhangs (glyphs + i, s->f, &left, &right); | 26359 | gui_get_glyph_overhangs (glyphs + i, s->f, &left, &right); |
| 26360 | if (x + right > 0) | 26360 | if (x + right > 0) |
| 26361 | k = i; | 26361 | k = i; |
| 26362 | x -= glyphs[i].pixel_width; | 26362 | x -= glyphs[i].pixel_width; |
| @@ -26411,7 +26411,7 @@ right_overwriting (struct glyph_string *s) | |||
| 26411 | for (i = first; i < end; ++i) | 26411 | for (i = first; i < end; ++i) |
| 26412 | { | 26412 | { |
| 26413 | int left, right; | 26413 | int left, right; |
| 26414 | x_get_glyph_overhangs (glyphs + i, s->f, &left, &right); | 26414 | gui_get_glyph_overhangs (glyphs + i, s->f, &left, &right); |
| 26415 | if (x - left < 0) | 26415 | if (x - left < 0) |
| 26416 | k = i; | 26416 | k = i; |
| 26417 | x += glyphs[i].pixel_width; | 26417 | x += glyphs[i].pixel_width; |
| @@ -27073,7 +27073,7 @@ font_for_underline_metrics (struct glyph_string *s) | |||
| 27073 | } | 27073 | } |
| 27074 | 27074 | ||
| 27075 | /* Store one glyph for IT->char_to_display in IT->glyph_row. | 27075 | /* Store one glyph for IT->char_to_display in IT->glyph_row. |
| 27076 | Called from x_produce_glyphs when IT->glyph_row is non-null. */ | 27076 | Called from gui_produce_glyphs when IT->glyph_row is non-null. */ |
| 27077 | 27077 | ||
| 27078 | static void | 27078 | static void |
| 27079 | append_glyph (struct it *it) | 27079 | append_glyph (struct it *it) |
| @@ -27155,9 +27155,8 @@ append_glyph (struct it *it) | |||
| 27155 | IT_EXPAND_MATRIX_WIDTH (it, area); | 27155 | IT_EXPAND_MATRIX_WIDTH (it, area); |
| 27156 | } | 27156 | } |
| 27157 | 27157 | ||
| 27158 | /* Store one glyph for the composition IT->cmp_it.id in | 27158 | /* Store one glyph for the composition IT->cmp_it.id in IT->glyph_row. |
| 27159 | IT->glyph_row. Called from x_produce_glyphs when IT->glyph_row is | 27159 | Called from gui_produce_glyphs when IT->glyph_row is non-null. */ |
| 27160 | non-null. */ | ||
| 27161 | 27160 | ||
| 27162 | static void | 27161 | static void |
| 27163 | append_composite_glyph (struct it *it) | 27162 | append_composite_glyph (struct it *it) |
| @@ -28233,7 +28232,7 @@ produce_glyphless_glyph (struct it *it, bool for_no_font, Lisp_Object acronym) | |||
| 28233 | for an overview of struct it. */ | 28232 | for an overview of struct it. */ |
| 28234 | 28233 | ||
| 28235 | void | 28234 | void |
| 28236 | x_produce_glyphs (struct it *it) | 28235 | gui_produce_glyphs (struct it *it) |
| 28237 | { | 28236 | { |
| 28238 | int extra_line_spacing = it->extra_line_spacing; | 28237 | int extra_line_spacing = it->extra_line_spacing; |
| 28239 | 28238 | ||
| @@ -29001,7 +29000,7 @@ x_produce_glyphs (struct it *it) | |||
| 29001 | being updated, and UPDATED_AREA is the area of that row being updated. */ | 29000 | being updated, and UPDATED_AREA is the area of that row being updated. */ |
| 29002 | 29001 | ||
| 29003 | void | 29002 | void |
| 29004 | x_write_glyphs (struct window *w, struct glyph_row *updated_row, | 29003 | gui_write_glyphs (struct window *w, struct glyph_row *updated_row, |
| 29005 | struct glyph *start, enum glyph_row_area updated_area, int len) | 29004 | struct glyph *start, enum glyph_row_area updated_area, int len) |
| 29006 | { | 29005 | { |
| 29007 | int x, hpos, chpos = w->phys_cursor.hpos; | 29006 | int x, hpos, chpos = w->phys_cursor.hpos; |
| @@ -29045,7 +29044,7 @@ x_write_glyphs (struct window *w, struct glyph_row *updated_row, | |||
| 29045 | Insert LEN glyphs from START at the nominal cursor position. */ | 29044 | Insert LEN glyphs from START at the nominal cursor position. */ |
| 29046 | 29045 | ||
| 29047 | void | 29046 | void |
| 29048 | x_insert_glyphs (struct window *w, struct glyph_row *updated_row, | 29047 | gui_insert_glyphs (struct window *w, struct glyph_row *updated_row, |
| 29049 | struct glyph *start, enum glyph_row_area updated_area, int len) | 29048 | struct glyph *start, enum glyph_row_area updated_area, int len) |
| 29050 | { | 29049 | { |
| 29051 | struct frame *f; | 29050 | struct frame *f; |
| @@ -29102,7 +29101,7 @@ x_insert_glyphs (struct window *w, struct glyph_row *updated_row, | |||
| 29102 | updated window W. TO_X == -1 means clear to the end of this area. */ | 29101 | updated window W. TO_X == -1 means clear to the end of this area. */ |
| 29103 | 29102 | ||
| 29104 | void | 29103 | void |
| 29105 | x_clear_end_of_line (struct window *w, struct glyph_row *updated_row, | 29104 | gui_clear_end_of_line (struct window *w, struct glyph_row *updated_row, |
| 29106 | enum glyph_row_area updated_area, int to_x) | 29105 | enum glyph_row_area updated_area, int to_x) |
| 29107 | { | 29106 | { |
| 29108 | struct frame *f; | 29107 | struct frame *f; |
| @@ -29489,7 +29488,7 @@ notice_overwritten_cursor (struct window *w, enum glyph_row_area area, | |||
| 29489 | with respect to the overlapping part OVERLAPS. */ | 29488 | with respect to the overlapping part OVERLAPS. */ |
| 29490 | 29489 | ||
| 29491 | void | 29490 | void |
| 29492 | x_fix_overlapping_area (struct window *w, struct glyph_row *row, | 29491 | gui_fix_overlapping_area (struct window *w, struct glyph_row *row, |
| 29493 | enum glyph_row_area area, int overlaps) | 29492 | enum glyph_row_area area, int overlaps) |
| 29494 | { | 29493 | { |
| 29495 | int i, x; | 29494 | int i, x; |
| @@ -29568,12 +29567,12 @@ draw_phys_cursor_glyph (struct window *w, struct glyph_row *row, | |||
| 29568 | 29567 | ||
| 29569 | if (row > w->current_matrix->rows | 29568 | if (row > w->current_matrix->rows |
| 29570 | && MATRIX_ROW_OVERLAPS_SUCC_P (row - 1)) | 29569 | && MATRIX_ROW_OVERLAPS_SUCC_P (row - 1)) |
| 29571 | x_fix_overlapping_area (w, row - 1, TEXT_AREA, | 29570 | gui_fix_overlapping_area (w, row - 1, TEXT_AREA, |
| 29572 | OVERLAPS_ERASED_CURSOR); | 29571 | OVERLAPS_ERASED_CURSOR); |
| 29573 | 29572 | ||
| 29574 | if (MATRIX_ROW_BOTTOM_Y (row) < window_text_bottom_y (w) | 29573 | if (MATRIX_ROW_BOTTOM_Y (row) < window_text_bottom_y (w) |
| 29575 | && MATRIX_ROW_OVERLAPS_PRED_P (row + 1)) | 29574 | && MATRIX_ROW_OVERLAPS_PRED_P (row + 1)) |
| 29576 | x_fix_overlapping_area (w, row + 1, TEXT_AREA, | 29575 | gui_fix_overlapping_area (w, row + 1, TEXT_AREA, |
| 29577 | OVERLAPS_ERASED_CURSOR); | 29576 | OVERLAPS_ERASED_CURSOR); |
| 29578 | } | 29577 | } |
| 29579 | } | 29578 | } |
| @@ -29863,7 +29862,7 @@ update_cursor_in_window_tree (struct window *w, bool on_p) | |||
| 29863 | Don't change the cursor's position. */ | 29862 | Don't change the cursor's position. */ |
| 29864 | 29863 | ||
| 29865 | void | 29864 | void |
| 29866 | x_update_cursor (struct frame *f, bool on_p) | 29865 | gui_update_cursor (struct frame *f, bool on_p) |
| 29867 | { | 29866 | { |
| 29868 | update_cursor_in_window_tree (XWINDOW (f->root_window), on_p); | 29867 | update_cursor_in_window_tree (XWINDOW (f->root_window), on_p); |
| 29869 | } | 29868 | } |
| @@ -29875,7 +29874,7 @@ x_update_cursor (struct frame *f, bool on_p) | |||
| 29875 | is about to be rewritten. */ | 29874 | is about to be rewritten. */ |
| 29876 | 29875 | ||
| 29877 | void | 29876 | void |
| 29878 | x_clear_cursor (struct window *w) | 29877 | gui_clear_cursor (struct window *w) |
| 29879 | { | 29878 | { |
| 29880 | if (FRAME_VISIBLE_P (XFRAME (w->frame)) && w->phys_cursor_on_p) | 29879 | if (FRAME_VISIBLE_P (XFRAME (w->frame)) && w->phys_cursor_on_p) |
| 29881 | update_window_cursor (w, false); | 29880 | update_window_cursor (w, false); |
| @@ -31903,7 +31902,7 @@ note_mouse_highlight (struct frame *f, int x, int y) | |||
| 31903 | functions to ensure the mouse-highlight is off. */ | 31902 | functions to ensure the mouse-highlight is off. */ |
| 31904 | 31903 | ||
| 31905 | void | 31904 | void |
| 31906 | x_clear_window_mouse_face (struct window *w) | 31905 | gui_clear_window_mouse_face (struct window *w) |
| 31907 | { | 31906 | { |
| 31908 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (XFRAME (w->frame)); | 31907 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (XFRAME (w->frame)); |
| 31909 | Lisp_Object window; | 31908 | Lisp_Object window; |
| @@ -32047,13 +32046,13 @@ expose_overlaps (struct window *w, | |||
| 32047 | 32046 | ||
| 32048 | row->clip = r; | 32047 | row->clip = r; |
| 32049 | if (row->used[LEFT_MARGIN_AREA]) | 32048 | if (row->used[LEFT_MARGIN_AREA]) |
| 32050 | x_fix_overlapping_area (w, row, LEFT_MARGIN_AREA, OVERLAPS_BOTH); | 32049 | gui_fix_overlapping_area (w, row, LEFT_MARGIN_AREA, OVERLAPS_BOTH); |
| 32051 | 32050 | ||
| 32052 | if (row->used[TEXT_AREA]) | 32051 | if (row->used[TEXT_AREA]) |
| 32053 | x_fix_overlapping_area (w, row, TEXT_AREA, OVERLAPS_BOTH); | 32052 | gui_fix_overlapping_area (w, row, TEXT_AREA, OVERLAPS_BOTH); |
| 32054 | 32053 | ||
| 32055 | if (row->used[RIGHT_MARGIN_AREA]) | 32054 | if (row->used[RIGHT_MARGIN_AREA]) |
| 32056 | x_fix_overlapping_area (w, row, RIGHT_MARGIN_AREA, OVERLAPS_BOTH); | 32055 | gui_fix_overlapping_area (w, row, RIGHT_MARGIN_AREA, OVERLAPS_BOTH); |
| 32057 | row->clip = NULL; | 32056 | row->clip = NULL; |
| 32058 | } | 32057 | } |
| 32059 | } | 32058 | } |
| @@ -32082,7 +32081,7 @@ phys_cursor_in_rect_p (struct window *w, XRectangle *r) | |||
| 32082 | cr.y = row->y; | 32081 | cr.y = row->y; |
| 32083 | cr.width = WINDOW_RIGHT_FRINGE_WIDTH (w); | 32082 | cr.width = WINDOW_RIGHT_FRINGE_WIDTH (w); |
| 32084 | cr.height = row->height; | 32083 | cr.height = row->height; |
| 32085 | return x_intersect_rectangles (&cr, r, &result); | 32084 | return gui_intersect_rectangles (&cr, r, &result); |
| 32086 | } | 32085 | } |
| 32087 | 32086 | ||
| 32088 | cursor_glyph = get_phys_cursor_glyph (w); | 32087 | cursor_glyph = get_phys_cursor_glyph (w); |
| @@ -32096,7 +32095,7 @@ phys_cursor_in_rect_p (struct window *w, XRectangle *r) | |||
| 32096 | cr.height = w->phys_cursor_height; | 32095 | cr.height = w->phys_cursor_height; |
| 32097 | /* ++KFS: W32 version used W32-specific IntersectRect here, but | 32096 | /* ++KFS: W32 version used W32-specific IntersectRect here, but |
| 32098 | I assume the effect is the same -- and this is portable. */ | 32097 | I assume the effect is the same -- and this is portable. */ |
| 32099 | return x_intersect_rectangles (&cr, r, &result); | 32098 | return gui_intersect_rectangles (&cr, r, &result); |
| 32100 | } | 32099 | } |
| 32101 | /* If we don't understand the format, pretend we're not in the hot-spot. */ | 32100 | /* If we don't understand the format, pretend we're not in the hot-spot. */ |
| 32102 | return false; | 32101 | return false; |
| @@ -32108,7 +32107,7 @@ phys_cursor_in_rect_p (struct window *w, XRectangle *r) | |||
| 32108 | have vertical scroll bars. */ | 32107 | have vertical scroll bars. */ |
| 32109 | 32108 | ||
| 32110 | void | 32109 | void |
| 32111 | x_draw_vertical_border (struct window *w) | 32110 | gui_draw_vertical_border (struct window *w) |
| 32112 | { | 32111 | { |
| 32113 | struct frame *f = XFRAME (WINDOW_FRAME (w)); | 32112 | struct frame *f = XFRAME (WINDOW_FRAME (w)); |
| 32114 | 32113 | ||
| @@ -32159,7 +32158,7 @@ x_draw_vertical_border (struct window *w) | |||
| 32159 | /* Draw window dividers for window W. */ | 32158 | /* Draw window dividers for window W. */ |
| 32160 | 32159 | ||
| 32161 | void | 32160 | void |
| 32162 | x_draw_right_divider (struct window *w) | 32161 | gui_draw_right_divider (struct window *w) |
| 32163 | { | 32162 | { |
| 32164 | struct frame *f = WINDOW_XFRAME (w); | 32163 | struct frame *f = WINDOW_XFRAME (w); |
| 32165 | 32164 | ||
| @@ -32185,7 +32184,7 @@ x_draw_right_divider (struct window *w) | |||
| 32185 | } | 32184 | } |
| 32186 | 32185 | ||
| 32187 | static void | 32186 | static void |
| 32188 | x_draw_bottom_divider (struct window *w) | 32187 | gui_draw_bottom_divider (struct window *w) |
| 32189 | { | 32188 | { |
| 32190 | struct frame *f = XFRAME (WINDOW_FRAME (w)); | 32189 | struct frame *f = XFRAME (WINDOW_FRAME (w)); |
| 32191 | 32190 | ||
| @@ -32250,7 +32249,7 @@ expose_window (struct window *w, XRectangle *fr) | |||
| 32250 | wr.width = WINDOW_PIXEL_WIDTH (w); | 32249 | wr.width = WINDOW_PIXEL_WIDTH (w); |
| 32251 | wr.height = WINDOW_PIXEL_HEIGHT (w); | 32250 | wr.height = WINDOW_PIXEL_HEIGHT (w); |
| 32252 | 32251 | ||
| 32253 | if (x_intersect_rectangles (fr, &wr, &r)) | 32252 | if (gui_intersect_rectangles (fr, &wr, &r)) |
| 32254 | { | 32253 | { |
| 32255 | int yb = window_text_bottom_y (w); | 32254 | int yb = window_text_bottom_y (w); |
| 32256 | struct glyph_row *row; | 32255 | struct glyph_row *row; |
| @@ -32267,7 +32266,7 @@ expose_window (struct window *w, XRectangle *fr) | |||
| 32267 | bool cursor_cleared_p = (!w->pseudo_window_p | 32266 | bool cursor_cleared_p = (!w->pseudo_window_p |
| 32268 | && phys_cursor_in_rect_p (w, &r)); | 32267 | && phys_cursor_in_rect_p (w, &r)); |
| 32269 | if (cursor_cleared_p) | 32268 | if (cursor_cleared_p) |
| 32270 | x_clear_cursor (w); | 32269 | gui_clear_cursor (w); |
| 32271 | 32270 | ||
| 32272 | /* If the row containing the cursor extends face to end of line, | 32271 | /* If the row containing the cursor extends face to end of line, |
| 32273 | then expose_area might overwrite the cursor outside the | 32272 | then expose_area might overwrite the cursor outside the |
| @@ -32360,12 +32359,12 @@ expose_window (struct window *w, XRectangle *fr) | |||
| 32360 | 32359 | ||
| 32361 | /* Draw border between windows. */ | 32360 | /* Draw border between windows. */ |
| 32362 | if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) | 32361 | if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) |
| 32363 | x_draw_right_divider (w); | 32362 | gui_draw_right_divider (w); |
| 32364 | else | 32363 | else |
| 32365 | x_draw_vertical_border (w); | 32364 | gui_draw_vertical_border (w); |
| 32366 | 32365 | ||
| 32367 | if (WINDOW_BOTTOM_DIVIDER_WIDTH (w)) | 32366 | if (WINDOW_BOTTOM_DIVIDER_WIDTH (w)) |
| 32368 | x_draw_bottom_divider (w); | 32367 | gui_draw_bottom_divider (w); |
| 32369 | 32368 | ||
| 32370 | /* Turn the cursor on again. */ | 32369 | /* Turn the cursor on again. */ |
| 32371 | if (cursor_cleared_p | 32370 | if (cursor_cleared_p |
| @@ -32499,7 +32498,7 @@ expose_frame (struct frame *f, int x, int y, int w, int h) | |||
| 32499 | empty. */ | 32498 | empty. */ |
| 32500 | 32499 | ||
| 32501 | bool | 32500 | bool |
| 32502 | x_intersect_rectangles (XRectangle *r1, XRectangle *r2, XRectangle *result) | 32501 | gui_intersect_rectangles (XRectangle *r1, XRectangle *r2, XRectangle *result) |
| 32503 | { | 32502 | { |
| 32504 | XRectangle *left, *right; | 32503 | XRectangle *left, *right; |
| 32505 | XRectangle *upper, *lower; | 32504 | XRectangle *upper, *lower; |
diff --git a/src/xfns.c b/src/xfns.c index 9075491e978..ee3266e223d 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1388,8 +1388,8 @@ x_set_cursor_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 1388 | 1388 | ||
| 1389 | if (FRAME_VISIBLE_P (f)) | 1389 | if (FRAME_VISIBLE_P (f)) |
| 1390 | { | 1390 | { |
| 1391 | x_update_cursor (f, false); | 1391 | gui_update_cursor (f, false); |
| 1392 | x_update_cursor (f, true); | 1392 | gui_update_cursor (f, true); |
| 1393 | } | 1393 | } |
| 1394 | } | 1394 | } |
| 1395 | 1395 | ||
| @@ -4583,7 +4583,7 @@ x_get_monitor_for_frame (struct frame *f, | |||
| 4583 | 4583 | ||
| 4584 | if (mi->geom.width == 0) continue; | 4584 | if (mi->geom.width == 0) continue; |
| 4585 | 4585 | ||
| 4586 | if (x_intersect_rectangles (&mi->geom, &frect, &res)) | 4586 | if (gui_intersect_rectangles (&mi->geom, &frect, &res)) |
| 4587 | { | 4587 | { |
| 4588 | a = res.width * res.height; | 4588 | a = res.width * res.height; |
| 4589 | if (a > area) | 4589 | if (a > area) |
| @@ -4712,7 +4712,7 @@ x_get_monitor_attributes_xinerama (struct x_display_info *dpyinfo) | |||
| 4712 | if (i == 0 && x_get_net_workarea (dpyinfo, &workarea_r)) | 4712 | if (i == 0 && x_get_net_workarea (dpyinfo, &workarea_r)) |
| 4713 | { | 4713 | { |
| 4714 | mi->work = workarea_r; | 4714 | mi->work = workarea_r; |
| 4715 | if (! x_intersect_rectangles (&mi->geom, &mi->work, &mi->work)) | 4715 | if (! gui_intersect_rectangles (&mi->geom, &mi->work, &mi->work)) |
| 4716 | mi->work = mi->geom; | 4716 | mi->work = mi->geom; |
| 4717 | } | 4717 | } |
| 4718 | else | 4718 | else |
| @@ -4816,7 +4816,7 @@ x_get_monitor_attributes_xrandr (struct x_display_info *dpyinfo) | |||
| 4816 | if (i == primary && x_get_net_workarea (dpyinfo, &workarea_r)) | 4816 | if (i == primary && x_get_net_workarea (dpyinfo, &workarea_r)) |
| 4817 | { | 4817 | { |
| 4818 | mi->work= workarea_r; | 4818 | mi->work= workarea_r; |
| 4819 | if (! x_intersect_rectangles (&mi->geom, &mi->work, &mi->work)) | 4819 | if (! gui_intersect_rectangles (&mi->geom, &mi->work, &mi->work)) |
| 4820 | mi->work = mi->geom; | 4820 | mi->work = mi->geom; |
| 4821 | } | 4821 | } |
| 4822 | else | 4822 | else |
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, |