]> git.eshelyaron.com Git - emacs.git/commit
Support native image resizing on cairo
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Wed, 27 Mar 2019 02:04:46 +0000 (11:04 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Wed, 27 Mar 2019 02:12:18 +0000 (11:12 +0900)
commit2755cf1848b551436b9cc2eff6e4b882b10c07aa
tree0c496f95796f8417f69b5221412162763d1ef4bb
parentd7e442651777805958bd6bcbc8312a6cce147e4a
Support native image resizing on cairo

* src/xterm.c (x_cr_draw_image): Add arguments image_width and
image_height and support scaling.  All callers changed.
* src/image.c (Fimage_scaling_p): Return t when USE_CAIRO.
(x_set_image_size) [USE_CAIRO]: Record the scaled dimensions
in the image struct.
* src/dispextern.h (HAVE_NATIVE_SCALING): Define when
USE_CAIRO as well.

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