summaryrefslogtreecommitdiff
path: root/src/w32image.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-03-26 11:31:46 +0300
committerEli Zaretskii <eliz@gnu.org>2022-03-26 11:31:46 +0300
commita6abb6f5cdd5a44bce2e42c340a6c6b83579de93 (patch)
tree0411015118b08c5610664dc611f4b36d0a380aa6 /src/w32image.c
parentde953a6fe39d8e547ce4d40f39cd2c10b71a1e3c (diff)
downloademacs-a6abb6f5cdd5a44bce2e42c340a6c6b83579de93.tar.gz
Support display of BMP images on MS-Windows
* src/w32image.c (w32_can_use_native_image_api): Support BMP images. * src/image.c (syms_of_image) <Qbmp>: New symbol. [HAVE_NTGUI]: Add 'bmp' to list of supported image types. * doc/lispref/display.texi (Image Formats): Document built-in support for BMP images. * etc/NEWS: Announce the change.
Diffstat (limited to 'src/w32image.c')
-rw-r--r--src/w32image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/w32image.c b/src/w32image.c
index f3374dcfd30..1f7c4921b31 100644
--- a/src/w32image.c
+++ b/src/w32image.c
@@ -253,6 +253,7 @@ w32_can_use_native_image_api (Lisp_Object type)
|| EQ (type, Qpng)
|| EQ (type, Qgif)
|| EQ (type, Qtiff)
+ || EQ (type, Qbmp)
|| EQ (type, Qnative_image)))
{
/* GDI+ can also display BMP, Exif, ICON, WMF, and EMF images.