]> git.eshelyaron.com Git - emacs.git/commit
Allow use of em in image spec sizes
authorAlan Third <alan@idiocy.org>
Mon, 12 Apr 2021 19:30:12 +0000 (20:30 +0100)
committerAlan Third <alan@idiocy.org>
Thu, 15 Apr 2021 16:56:23 +0000 (17:56 +0100)
commitc2372096433e6a7ab173e5f1993f0c65b85f353e
tree3b358807e869d51d1d7f24ccd1a5eab428b97e83
parent157bfc1812c51a0a48162c71eadf7959f7de9ac6
Allow use of em in image spec sizes

* src/image.c (image_get_dimension): New function.
(compute_image_size): Use image_get_dimension to set the sizes, and
pass in the image struct instead of just the spec.
(image_set_transform):
(imagemagick_load_image):
(svg_load_image): Use the image instead of the spec in compute_image_size.
(syms_of_image): Add 'em' as a symbol.
doc/lispref/display.texi
etc/NEWS
src/image.c