emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 5f8c655a44 1/2: Fix splash screen display on NS and Haiku with na


From: Po Lu
Subject: master 5f8c655a44 1/2: Fix splash screen display on NS and Haiku with native image APIs
Date: Sun, 6 Nov 2022 07:12:17 -0500 (EST)

branch: master
commit 5f8c655a44a0e7ad1fe6f8b23acb4e6c93dc72a6
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 80b814cb1c..15eaf89d7f 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");



reply via email to

[Prev in Thread] Current Thread [Next in Thread]