From d8a47823103da803b8274d790527f48d85a3f9b4 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 9 May 2022 02:52:16 +0000 Subject: [PATCH] Fix stipple bitmap caching on Haiku * src/image.c (image_create_bitmap_from_file): Set file name on the bitmap rec on Haiku. --- src/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2