aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorPo Lu2022-03-26 12:16:46 +0000
committerPo Lu2022-03-26 12:16:46 +0000
commitb1e9151915d370cb638bb707ff1afdfd9a0d1eab (patch)
tree5bf1a218030da6dd93d517e1f9c717ea4faacfc1 /src/image.c
parent0549adb4bb7c31c99f99bd295a7cb65b380b83f8 (diff)
downloademacs-b1e9151915d370cb638bb707ff1afdfd9a0d1eab.tar.gz
emacs-b1e9151915d370cb638bb707ff1afdfd9a0d1eab.zip
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.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c12
1 files changed, 8 insertions, 4 deletions
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. */);
11555 11555
11556#if HAVE_NATIVE_IMAGE_API 11556#if HAVE_NATIVE_IMAGE_API
11557 DEFSYM (Qnative_image, "native-image"); 11557 DEFSYM (Qnative_image, "native-image");
11558# ifdef HAVE_NTGUI 11558
11559 DEFSYM (Qgdiplus, "gdiplus"); 11559#if defined HAVE_NTGUI || defined HAVE_HAIKU
11560 DEFSYM (Qshlwapi, "shlwapi");
11561 DEFSYM (Qbmp, "bmp"); 11560 DEFSYM (Qbmp, "bmp");
11562 add_image_type (Qbmp); 11561 add_image_type (Qbmp);
11563# endif 11562#endif
11563
11564#ifdef HAVE_NTGUI
11565 DEFSYM (Qgdiplus, "gdiplus");
11566 DEFSYM (Qshlwapi, "shlwapi");
11567#endif
11564#endif 11568#endif
11565 11569
11566 defsubr (&Sinit_image_library); 11570 defsubr (&Sinit_image_library);