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.
This commit is contained in:
Po Lu
2022-03-26 12:16:46 +00:00
parent 0549adb4bb
commit b1e9151915

View File

@@ -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);