diff options
| author | Yuuki Harano | 2019-06-25 21:36:39 +0900 |
|---|---|---|
| committer | Jeff Walsh | 2020-11-22 14:46:55 +1100 |
| commit | 330a346ca734d39c0233ef899e044d05e0e1ebe9 (patch) | |
| tree | fb58fa9d6fdae8657a25ede315efeebffdd9eea2 /src/pgtkterm.c | |
| parent | f4920a68831f769f0a1504c85145589bdb4c3eb9 (diff) | |
| download | emacs-330a346ca734d39c0233ef899e044d05e0e1ebe9.tar.gz emacs-330a346ca734d39c0233ef899e044d05e0e1ebe9.zip | |
Migrate to Emacs_GC
* ../src/xfaces.c (x_create_gc, x_free_gc):
* ../src/pgtkterm.h (struct pgtk_output, struct pgtk_output):
* ../src/pgtkterm.c (x_set_cursor_gc, x_set_mouse_face_gc)
(x_setup_relief_color, x_draw_image_foreground_1)
(x_draw_image_foreground)
(pgtk_cr_draw_image, pgtk_draw_fringe_bitmap)
(pgtk_begin_cr_clip, pgtk_set_cr_source_with_gc_foreground)
(pgtk_set_cr_source_with_gc_background):
* ../src/pgtkgui.h:
* ../src/dispextern.h (struct glyph_string): clean up XGCValues emulation
XGCValues, GC 廃止。
Emacs_GC に統一。
Diffstat (limited to 'src/pgtkterm.c')
| -rw-r--r-- | src/pgtkterm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pgtkterm.c b/src/pgtkterm.c index ed8d7e841be..9fbf41c6fbc 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c | |||
| @@ -754,7 +754,7 @@ x_set_cursor_gc (struct glyph_string *s) | |||
| 754 | else | 754 | else |
| 755 | { | 755 | { |
| 756 | /* Cursor on non-default face: must merge. */ | 756 | /* Cursor on non-default face: must merge. */ |
| 757 | XGCValues xgcv; | 757 | Emacs_GC xgcv; |
| 758 | 758 | ||
| 759 | PGTK_TRACE("x_set_cursor_gc: 2."); | 759 | PGTK_TRACE("x_set_cursor_gc: 2."); |
| 760 | xgcv.background = FRAME_X_OUTPUT(s->f)->cursor_color; | 760 | xgcv.background = FRAME_X_OUTPUT(s->f)->cursor_color; |
| @@ -815,7 +815,7 @@ x_set_mouse_face_gc (struct glyph_string *s) | |||
| 815 | { | 815 | { |
| 816 | /* Otherwise construct scratch_cursor_gc with values from FACE | 816 | /* Otherwise construct scratch_cursor_gc with values from FACE |
| 817 | except for FONT. */ | 817 | except for FONT. */ |
| 818 | XGCValues xgcv; | 818 | Emacs_GC xgcv; |
| 819 | 819 | ||
| 820 | xgcv.background = s->face->background; | 820 | xgcv.background = s->face->background; |
| 821 | xgcv.foreground = s->face->foreground; | 821 | xgcv.foreground = s->face->foreground; |
| @@ -1433,7 +1433,7 @@ static void | |||
| 1433 | x_setup_relief_color (struct frame *f, struct relief *relief, double factor, | 1433 | x_setup_relief_color (struct frame *f, struct relief *relief, double factor, |
| 1434 | int delta, unsigned long default_pixel) | 1434 | int delta, unsigned long default_pixel) |
| 1435 | { | 1435 | { |
| 1436 | XGCValues xgcv; | 1436 | Emacs_GC xgcv; |
| 1437 | struct pgtk_output *di = FRAME_X_OUTPUT(f); | 1437 | struct pgtk_output *di = FRAME_X_OUTPUT(f); |
| 1438 | unsigned long pixel; | 1438 | unsigned long pixel; |
| 1439 | unsigned long background = di->relief_background; | 1439 | unsigned long background = di->relief_background; |
| @@ -3107,7 +3107,7 @@ pgtk_clip_to_row (struct window *w, struct glyph_row *row, | |||
| 3107 | } | 3107 | } |
| 3108 | 3108 | ||
| 3109 | static void | 3109 | static void |
| 3110 | pgtk_cr_draw_image (struct frame *f, GC gc, cairo_pattern_t *image, | 3110 | pgtk_cr_draw_image (struct frame *f, Emacs_GC *gc, cairo_pattern_t *image, |
| 3111 | int src_x, int src_y, int width, int height, | 3111 | int src_x, int src_y, int width, int height, |
| 3112 | int dest_x, int dest_y, bool overlay_p) | 3112 | int dest_x, int dest_y, bool overlay_p) |
| 3113 | { | 3113 | { |
| @@ -3198,7 +3198,7 @@ pgtk_draw_fringe_bitmap (struct window *w, struct glyph_row *row, struct draw_fr | |||
| 3198 | PGTK_TRACE("which: %d, max_fringe_bmp: %d.", p->which, max_fringe_bmp); | 3198 | PGTK_TRACE("which: %d, max_fringe_bmp: %d.", p->which, max_fringe_bmp); |
| 3199 | if (p->which && p->which < max_fringe_bmp) | 3199 | if (p->which && p->which < max_fringe_bmp) |
| 3200 | { | 3200 | { |
| 3201 | XGCValues gcv; | 3201 | Emacs_GC gcv; |
| 3202 | 3202 | ||
| 3203 | PGTK_TRACE("cursor_p=%d.", p->cursor_p); | 3203 | PGTK_TRACE("cursor_p=%d.", p->cursor_p); |
| 3204 | PGTK_TRACE("overlay_p_p=%d.", p->overlay_p); | 3204 | PGTK_TRACE("overlay_p_p=%d.", p->overlay_p); |
| @@ -6356,14 +6356,14 @@ pgtk_end_cr_clip (struct frame *f) | |||
| 6356 | } | 6356 | } |
| 6357 | 6357 | ||
| 6358 | void | 6358 | void |
| 6359 | pgtk_set_cr_source_with_gc_foreground (struct frame *f, XGCValues *gc) | 6359 | pgtk_set_cr_source_with_gc_foreground (struct frame *f, Emacs_GC *gc) |
| 6360 | { | 6360 | { |
| 6361 | PGTK_TRACE("pgtk_set_cr_source_with_gc_foreground: %08lx", gc->foreground); | 6361 | PGTK_TRACE("pgtk_set_cr_source_with_gc_foreground: %08lx", gc->foreground); |
| 6362 | pgtk_set_cr_source_with_color(f, gc->foreground); | 6362 | pgtk_set_cr_source_with_color(f, gc->foreground); |
| 6363 | } | 6363 | } |
| 6364 | 6364 | ||
| 6365 | void | 6365 | void |
| 6366 | pgtk_set_cr_source_with_gc_background (struct frame *f, XGCValues *gc) | 6366 | pgtk_set_cr_source_with_gc_background (struct frame *f, Emacs_GC *gc) |
| 6367 | { | 6367 | { |
| 6368 | PGTK_TRACE("pgtk_set_cr_source_with_gc_background: %08lx", gc->background); | 6368 | PGTK_TRACE("pgtk_set_cr_source_with_gc_background: %08lx", gc->background); |
| 6369 | pgtk_set_cr_source_with_color(f, gc->background); | 6369 | pgtk_set_cr_source_with_color(f, gc->background); |