1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-20 11:33:09 -08:00

Fix crash when displaying XBM images on a 32-bit visual

* src/image.c (Create_Pixmap_From_Bitmap_Data): Fix use of wrong
(default) depth.
This commit is contained in:
Po Lu 2022-02-17 20:44:53 +08:00
parent 7e6fa8ed38
commit 64eb2a5f8d

View file

@ -3804,7 +3804,7 @@ Create_Pixmap_From_Bitmap_Data (struct frame *f, struct image *img, char *data,
data,
img->width, img->height,
fg, bg,
DefaultDepthOfScreen (FRAME_X_SCREEN (f)));
FRAME_DISPLAY_INFO (f)->n_planes);
# if !defined USE_CAIRO && defined HAVE_XRENDER
if (img->pixmap)
img->picture = x_create_xrender_picture (f, img->pixmap, 0);