aboutsummaryrefslogtreecommitdiffstats
path: root/src/pgtkterm.h
diff options
context:
space:
mode:
authorYuuki Harano2019-07-29 21:31:42 +0900
committerJeff Walsh2020-11-22 14:46:56 +1100
commitfd61a86ea593fec0fc8967550f515596dc596601 (patch)
tree60033e01d952532fe7187ea400383ffb85f700bc /src/pgtkterm.h
parentae3bb140912827c38e7033c07851a94ba710428d (diff)
downloademacs-fd61a86ea593fec0fc8967550f515596dc596601.tar.gz
emacs-fd61a86ea593fec0fc8967550f515596dc596601.zip
improve some efficiency - simplify draws
* src/pgtkterm.h (struct pgtk_bitmap_record): * src/pgtkterm.c (create_background_surface_by_face): * src/image.c (image_create_pattern_from_pixbuf) (image_create_bitmap_from_data, image_create_bitmap_from_file): 少し効率化。
Diffstat (limited to 'src/pgtkterm.h')
-rw-r--r--src/pgtkterm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pgtkterm.h b/src/pgtkterm.h
index 4c6ef0f6bb8..8caf31f8e43 100644
--- a/src/pgtkterm.h
+++ b/src/pgtkterm.h
@@ -54,6 +54,7 @@ struct pgtk_bitmap_record
54 char *file; 54 char *file;
55 int refcount; 55 int refcount;
56 int height, width, depth; 56 int height, width, depth;
57 cairo_pattern_t *pattern;
57}; 58};
58 59
59#define RGB_TO_ULONG(r, g, b) (((r) << 16) | ((g) << 8) | (b)) 60#define RGB_TO_ULONG(r, g, b) (((r) << 16) | ((g) << 8) | (b))