diff options
| author | Yuuki Harano | 2019-07-05 22:37:18 +0900 |
|---|---|---|
| committer | Jeff Walsh | 2020-11-22 14:46:55 +1100 |
| commit | 85441c96d74f82ca368b950aa0f5334297bf4fa0 (patch) | |
| tree | 0bdc7d96aa602594cb18ba364e7f12347d7c8a76 /src/image.c | |
| parent | 1d549fa0690d174446ff139bece6db5decd25eba (diff) | |
| download | emacs-85441c96d74f82ca368b950aa0f5334297bf4fa0.tar.gz emacs-85441c96d74f82ca368b950aa0f5334297bf4fa0.zip | |
Add Stipple support for PGTK
* ../src/pgtkterm.c (create_background_surface_by_face)
(create_background_surface, x_draw_glyph_string_background)
(x_draw_glyph_string_bg_rect, x_draw_image_glyph_string)
(x_draw_stretch_glyph_string, pgtk_draw_fringe_bitmap): handle stipple
* ../src/image.c (image_create_bitmap_from_file, )
(syms_of_image): Add pgtk support
* ../lisp/faces.el (face-valid-attribute-values): add pgtk support
stipple 対応。
stipple がまともに動いてなかったので修正。
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/image.c b/src/image.c index 9beb35c484b..0242b502581 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -507,12 +507,14 @@ image_create_bitmap_from_file (struct frame *f, Lisp_Object file) | |||
| 507 | #endif | 507 | #endif |
| 508 | 508 | ||
| 509 | #ifdef HAVE_PGTK | 509 | #ifdef HAVE_PGTK |
| 510 | GError *err; | 510 | GError *err = NULL; |
| 511 | ptrdiff_t id; | 511 | ptrdiff_t id; |
| 512 | void * bitmap = gdk_pixbuf_new_from_file(SSDATA(file), &err); | 512 | void * bitmap = gdk_pixbuf_new_from_file(SSDATA(file), &err); |
| 513 | 513 | ||
| 514 | if (!bitmap) | 514 | if (!bitmap) { |
| 515 | g_error_free(err); | ||
| 515 | return -1; | 516 | return -1; |
| 517 | } | ||
| 516 | 518 | ||
| 517 | id = image_allocate_bitmap_record(f); | 519 | id = image_allocate_bitmap_record(f); |
| 518 | 520 | ||
| @@ -10698,7 +10700,7 @@ non-numeric, there is no explicit limit on the size of images. */); | |||
| 10698 | DEFSYM (Qxbm, "xbm"); | 10700 | DEFSYM (Qxbm, "xbm"); |
| 10699 | add_image_type (Qxbm); | 10701 | add_image_type (Qxbm); |
| 10700 | 10702 | ||
| 10701 | #if defined (HAVE_XPM) || defined (HAVE_NS) | 10703 | #if defined (HAVE_XPM) || defined (HAVE_NS) || defined (USE_CAIRO) |
| 10702 | DEFSYM (Qxpm, "xpm"); | 10704 | DEFSYM (Qxpm, "xpm"); |
| 10703 | add_image_type (Qxpm); | 10705 | add_image_type (Qxpm); |
| 10704 | #endif | 10706 | #endif |