]> git.eshelyaron.com Git - emacs.git/commitdiff
Add support for native webp images on Haiku
authorPo Lu <luangruo@yahoo.com>
Sun, 9 Jan 2022 04:44:16 +0000 (04:44 +0000)
committerPo Lu <luangruo@yahoo.com>
Sun, 9 Jan 2022 04:44:16 +0000 (04:44 +0000)
* src/haikuimage.c (haiku_can_use_native_image_api): Add support
for `webp' images.

src/haikuimage.c

index 4ffa214f1cfa35306ae55c20b171640ce98adba8..fe960bbc29126fda3f0b773670ede5a7dd5b6892 100644 (file)
@@ -52,6 +52,8 @@ haiku_can_use_native_image_api (Lisp_Object type)
     mime_type = "image/svg";
   else if (EQ (type, Qpbm))
     mime_type = "image/pbm";
+  else if (EQ (type, Qwebp))
+    mime_type = "image/webp";
 
   if (!mime_type)
     return 0;