From 5f8c655a44a0e7ad1fe6f8b23acb4e6c93dc72a6 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 6 Nov 2022 20:07:49 +0800 Subject: [PATCH] Fix splash screen display on NS and Haiku with native image APIs * src/image.c (syms_of_image): Add Qsvg image type if SVG is also supported by native image APIs. --- src/image.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/image.c b/src/image.c index 80b814cb1c2..15eaf89d7f6 100644 --- a/src/image.c +++ b/src/image.c @@ -12213,7 +12213,12 @@ non-numeric, there is no explicit limit on the size of images. */); # endif DEFSYM (Qgobject, "gobject"); #endif /* HAVE_NTGUI */ -#endif /* HAVE_RSVG */ +#elif defined HAVE_NATIVE_IMAGE_API \ + && ((defined HAVE_NS && defined NS_IMPL_COCOA) \ + || defined HAVE_HAIKU) + DEFSYM (Qsvg, "svg"); + add_image_type (Qsvg); +#endif #ifdef HAVE_NS DEFSYM (Qheic, "heic"); -- 2.39.2