]> git.eshelyaron.com Git - emacs.git/commit
Support native image resizing on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sun, 20 Jan 2019 15:59:12 +0000 (17:59 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 20 Jan 2019 15:59:12 +0000 (17:59 +0200)
commit67b1053dcd958d21a964dc09c2ba9666e11240b2
tree1eb1272130b47d1fa76f095b300a28df7e808a0f
parent551051596fe51d6e232315eeda8a0a79eb43bfdf
Support native image resizing on MS-Windows

* src/w32term.c (x_draw_image_foreground): Scale the image if
the requested dimensions are different from the bitmap
dimensions.
* src/image.c (Fimage_scaling_p): Return t when HAVE_NTGUI.
(x_set_image_size) [HAVE_NTGUI]: Record the scaled dimensions
in the image struct.
* src/dispextern.h (HAVE_NATIVE_SCALING): Define when
HAVE_NTGUI as well.

* etc/NEWS: Update the announcement of native image scaling.
etc/NEWS
src/dispextern.h
src/image.c
src/w32term.c