diff options
| author | Po Lu | 2022-02-17 20:44:53 +0800 |
|---|---|---|
| committer | Po Lu | 2022-02-17 20:44:53 +0800 |
| commit | 64eb2a5f8d3176c4e790c9bea9e753ba9bf9593b (patch) | |
| tree | 2ecd6fd10c64b29e079b42a053cf72f76d3b2129 /src | |
| parent | 7e6fa8ed385a9fc096f037bcea17c18220fa69f1 (diff) | |
| download | emacs-64eb2a5f8d3176c4e790c9bea9e753ba9bf9593b.tar.gz 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')
| -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, | |||
| 3804 | data, | 3804 | data, |
| 3805 | img->width, img->height, | 3805 | img->width, img->height, |
| 3806 | fg, bg, | 3806 | fg, bg, |
| 3807 | DefaultDepthOfScreen (FRAME_X_SCREEN (f))); | 3807 | FRAME_DISPLAY_INFO (f)->n_planes); |
| 3808 | # if !defined USE_CAIRO && defined HAVE_XRENDER | 3808 | # if !defined USE_CAIRO && defined HAVE_XRENDER |
| 3809 | if (img->pixmap) | 3809 | if (img->pixmap) |
| 3810 | img->picture = x_create_xrender_picture (f, img->pixmap, 0); | 3810 | img->picture = x_create_xrender_picture (f, img->pixmap, 0); |