]> git.eshelyaron.com Git - emacs.git/commit
Fix stipple support on PGTK
authorPo Lu <luangruo@yahoo.com>
Tue, 1 Aug 2023 02:34:33 +0000 (10:34 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 1 Aug 2023 02:34:33 +0000 (10:34 +0800)
commit74d6604eaa2d770626309181ac4bc4f2598e63e7
treeda81fdaabe8e41afa9b5518bdbee8ecdaa605a79
parentbfb7c58ac5c322d6363e83f68afa88fc88ba2a0f
Fix stipple support on PGTK

* src/image.c (image_create_pattern_from_pixbuf): Remove function.
(image_bitmap_to_cr_pattern): New function.
(image_create_bitmap_from_data):
(image_create_bitmap_from_file): Create patterns with the correct
mask values directly from bitmap data.  Also, don't rely on GDK
to read XPMs, as that format isn't supported anymore.
* src/pgtkterm.c (pgtk_bitmap_icon): Disable already nonfunctional
code.
(pgtk_display_x_warning): Wrap warning message.
* src/pgtkterm.h (struct pgtk_bitmap_record): Remove `img' field.
(bug#64969)
src/image.c
src/pgtkterm.c
src/pgtkterm.h