diff options
author | Po Lu <luangruo@yahoo.com> | 2022-11-06 20:07:49 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-11-06 20:07:49 +0800 |
commit | 5f8c655a44a0e7ad1fe6f8b23acb4e6c93dc72a6 (patch) | |
tree | 089ff982add4d26819832a425339f926bd173378 | |
parent | dad452552bebf832e737ebb946b5eea6cd57f63f (diff) | |
download | emacs-5f8c655a44a0e7ad1fe6f8b23acb4e6c93dc72a6.tar.gz |
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.
-rw-r--r-- | src/image.c | 7 |
1 files changed, 6 insertions, 1 deletions
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"); |