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:
parent
7e6fa8ed38
commit
64eb2a5f8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue