emacs-diffs
[Top][All Lists]
Advanced

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

master b1e9151915: Enable the native display of BMP images on Haiku


From: Po Lu
Subject: master b1e9151915: Enable the native display of BMP images on Haiku
Date: Sat, 26 Mar 2022 08:18:41 -0400 (EDT)

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

    Enable the native display of BMP images on Haiku
    
    * src/image.c (syms_of_image): Also register `bmp' image type on
    Haiku when native image APIs are enabled.
---
 src/image.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/image.c b/src/image.c
index d44d689084..07f1426ffd 100644
--- a/src/image.c
+++ b/src/image.c
@@ -11555,12 +11555,16 @@ non-numeric, there is no explicit limit on the size 
of images.  */);
 
 #if HAVE_NATIVE_IMAGE_API
   DEFSYM (Qnative_image, "native-image");
-# ifdef HAVE_NTGUI
-  DEFSYM (Qgdiplus, "gdiplus");
-  DEFSYM (Qshlwapi, "shlwapi");
+
+#if defined HAVE_NTGUI || defined HAVE_HAIKU
   DEFSYM (Qbmp, "bmp");
   add_image_type (Qbmp);
-# endif
+#endif
+
+#ifdef HAVE_NTGUI
+  DEFSYM (Qgdiplus, "gdiplus");
+  DEFSYM (Qshlwapi, "shlwapi");
+#endif
 #endif
 
   defsubr (&Sinit_image_library);



reply via email to

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