From: Po Lu Date: Sun, 6 Nov 2022 12:07:49 +0000 (+0800) Subject: Fix splash screen display on NS and Haiku with native image APIs X-Git-Tag: emacs-29.0.90~1616^2~262 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5f8c655a44a0e7ad1fe6f8b23acb4e6c93dc72a6;p=emacs.git 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. --- 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");