]> git.eshelyaron.com Git - emacs.git/commit
Make image cache aware of image-scaling-factor (bug#74725)
authorAlan Third <alan@idiocy.org>
Fri, 27 Dec 2024 11:46:45 +0000 (11:46 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:22:22 +0000 (21:22 +0100)
commitb2c63c78062465e77709cbf7a454d3b8ed36345c
tree69d3dff1d6f4cd9a8e4efcd5ff19ef6ca68e9297
parent28ea8de17ea6f53a899d682fbabc4194f811553d
Make image cache aware of image-scaling-factor (bug#74725)

* src/dispextern.h (struct image): Add scale so it can be compared in
search_image_cache.
* src/image.c (search_image_cache): Calculate the scale factor and
compare with the cached value.
(image_compute_scale): Compute the image's scale factor and optionally
store it in the image struct.
(compute_image_size): Move scale calculation code into
image_compute_scale and use it.

(cherry picked from commit 691c161a81221905f7e2690ee747ba9163b1b645)
src/dispextern.h
src/image.c