diff options
author | Po Lu <luangruo@yahoo.com> | 2022-02-17 20:44:53 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-02-17 20:44:53 +0800 |
commit | 64eb2a5f8d3176c4e790c9bea9e753ba9bf9593b (patch) | |
tree | 2ecd6fd10c64b29e079b42a053cf72f76d3b2129 /src/image.c | |
parent | 7e6fa8ed385a9fc096f037bcea17c18220fa69f1 (diff) | |
download | emacs-64eb2a5f8d3176c4e790c9bea9e753ba9bf9593b.tar.gz emacs-64eb2a5f8d3176c4e790c9bea9e753ba9bf9593b.tar.bz2 emacs-64eb2a5f8d3176c4e790c9bea9e753ba9bf9593b.zip |
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.
Diffstat (limited to 'src/image.c')
-rw-r--r-- | src/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c index e5113269356..5c1bf8d7be6 100644 --- a/src/image.c +++ b/src/image.c @@ -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); |