diff options
author | Po Lu <luangruo@yahoo.com> | 2022-01-31 17:59:12 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-01-31 18:05:13 +0800 |
commit | 79896d3eb7f0d2e351196e5c896e21001b75f436 (patch) | |
tree | aa59eb9f48fbca32d0a964ad2a9c22d714656afc /lisp/emacs-lisp/lisp-mnt.el | |
parent | 9a56b4e6864c4e0815bb67805cfa67910ab3eeb5 (diff) | |
download | emacs-79896d3eb7f0d2e351196e5c896e21001b75f436.tar.gz emacs-79896d3eb7f0d2e351196e5c896e21001b75f436.tar.bz2 emacs-79896d3eb7f0d2e351196e5c896e21001b75f436.zip |
Improve portability of alpha channel handling on TrueColor visuals
* src/xfns.c (select_visual): Always ask for a TrueColor visual.
* src/xfont.c (xfont_draw):
* src/xftfont.c (xftfont_draw): Test `alpha_bits' instead of
n_planes.
* src/xterm.c (x_fill_rectangle, x_clear_rectangle): Likewise.
(x_query_colors, x_alloc_nearest_color): Remove code that
hard-coded alpha mask.
(x_term_init): Calculate alpha bits and offset and populate
field appropriately.
* src/xterm.h (struct x_display_info): New fields `alpha_bits'
and `alpha_offset'.
(x_make_truecolor_pixel): Stop hardcoding the value of the alpha
mask.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mnt.el')
0 files changed, 0 insertions, 0 deletions