]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix splash screen display on NS and Haiku with native image APIs
authorPo Lu <luangruo@yahoo.com>
Sun, 6 Nov 2022 12:07:49 +0000 (20:07 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 6 Nov 2022 12:07:49 +0000 (20:07 +0800)
* src/image.c (syms_of_image): Add Qsvg image type if SVG is
also supported by native image APIs.

src/image.c

index 80b814cb1c20e8897a3f801d5f479a0e0f36e2a6..15eaf89d7f62668fe4acafabd9339e69df677256 100644 (file)
@@ -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");