diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2019-05-30 17:16:41 +0900 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2019-05-30 17:16:41 +0900 |
commit | cc71a82fc705a73fa3ef6cda3ec6bee1cb654d7e (patch) | |
tree | 7ce649f9d1bcf8fe087e38b3488c9c0a6e14a7ba /src/xterm.h | |
parent | ceca1740ea2c9bc98da8c11765b78c696b27c79e (diff) | |
download | emacs-cc71a82fc705a73fa3ef6cda3ec6bee1cb654d7e.tar.gz |
Add stipple support on cairo
* src/xterm.h (struct x_bitmap_record) [USE_CAIRO]: Remove unused member img.
Add member stipple.
(x_bitmap_stipple) [USE_CAIRO]: Add extern.
* src/image.c (x_bitmap_stipple) [HAVE_X_WINDOWS && USE_CAIRO]: New function.
(image_create_bitmap_from_data, image_create_bitmap_from_file)
(x_create_bitmap_from_xpm_data) [HAVE_X_WINDOWS && USE_CAIRO]: Initialize
stipple member of struct x_bitmap_record.
(free_bitmap_record) [HAVE_X_WINDOWS && USE_CAIRO]: Destroy stipple member.
* src/xterm.c (x_fill_rectangle) [USE_CAIRO]: Inspect gc and draw stipple if
necessary. Use x_bitmap_stipple.
Diffstat (limited to 'src/xterm.h')
-rw-r--r-- | src/xterm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xterm.h b/src/xterm.h index ce1443c381c..2bd2c0105f6 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -130,7 +130,7 @@ struct xim_inst_t struct x_bitmap_record { #ifdef USE_CAIRO - void *img; + cairo_pattern_t *stipple; #endif Pixmap pixmap; bool have_mask; @@ -151,6 +151,8 @@ struct x_gc_ext_data /* Clipping rectangles. */ XRectangle clip_rects[MAX_CLIP_RECTS]; }; + +extern cairo_pattern_t *x_bitmap_stipple (struct frame *, Pixmap); #endif |