From: Po Lu Date: Mon, 9 May 2022 02:52:16 +0000 (+0000) Subject: Fix stipple bitmap caching on Haiku X-Git-Tag: emacs-29.0.90~1910^2~889 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d8a47823103da803b8274d790527f48d85a3f9b4;p=emacs.git Fix stipple bitmap caching on Haiku * src/image.c (image_create_bitmap_from_file): Set file name on the bitmap rec on Haiku. --- diff --git a/src/image.c b/src/image.c index 6cd0aa48cfc..0c14173d833 100644 --- a/src/image.c +++ b/src/image.c @@ -781,7 +781,7 @@ image_create_bitmap_from_file (struct frame *f, Lisp_Object file) dpyinfo->bitmaps[id - 1].img = bitmap; dpyinfo->bitmaps[id - 1].depth = 1; - dpyinfo->bitmaps[id - 1].file = NULL; + dpyinfo->bitmaps[id - 1].file = xlispstrdup (file); dpyinfo->bitmaps[id - 1].height = height; dpyinfo->bitmaps[id - 1].width = width; dpyinfo->bitmaps[id - 1].refcount = 1;