]> git.eshelyaron.com Git - emacs.git/commit
Add stipple support on cairo
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Thu, 30 May 2019 08:16:41 +0000 (17:16 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Thu, 30 May 2019 08:16:41 +0000 (17:16 +0900)
commitcc71a82fc705a73fa3ef6cda3ec6bee1cb654d7e
tree7ce649f9d1bcf8fe087e38b3488c9c0a6e14a7ba
parentceca1740ea2c9bc98da8c11765b78c696b27c79e
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.
src/image.c
src/xterm.c
src/xterm.h