From: Po Lu Date: Sat, 26 Mar 2022 12:16:46 +0000 (+0000) Subject: Enable the native display of BMP images on Haiku X-Git-Tag: emacs-29.0.90~1931^2~899 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b1e9151915d370cb638bb707ff1afdfd9a0d1eab;p=emacs.git 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. --- diff --git a/src/image.c b/src/image.c index d44d6890846..07f1426ffd7 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);