diff options
author | Po Lu <luangruo@yahoo.com> | 2022-02-04 08:51:24 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-02-04 08:54:01 +0800 |
commit | d539d00c4263e1d494213a0bcec655036405bd2e (patch) | |
tree | 3aa696fa7a2570c2b82b6761bf161506b45168c5 /lisp/emacs-lisp/syntax.el | |
parent | 12a6d319dcff5f1954f926be979b81170df2806c (diff) | |
download | emacs-d539d00c4263e1d494213a0bcec655036405bd2e.tar.gz emacs-d539d00c4263e1d494213a0bcec655036405bd2e.tar.bz2 emacs-d539d00c4263e1d494213a0bcec655036405bd2e.zip |
Improve image depth handling
Emacs defaults to a 32-bit TrueColor visual, but if that happens
on a display which defaults to 16-bit TrueColor, yet happens to
have 32-bit color, and doesn't have the X Render Extension, an
error will occur in x_composite_image as libXpm will load
pixmaps of depth 16 instead of depth 32.
* src/image.c (x_create_x_image_and_pixmap): Explictly specify
display depth.
(x_create_xrender_picture):
(xpm_load):
(gs_load): Use dpyinfo->n_planes instead of
DefaultDepthOfScreen.
Diffstat (limited to 'lisp/emacs-lisp/syntax.el')
0 files changed, 0 insertions, 0 deletions