From 0956a65e6f46a04f8fb2bce6e909ff6a10a1c016 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 29 Oct 2019 13:56:49 +0100 Subject: [PATCH] Make shr scale images on all frames * lisp/net/shr.el (shr-rescale-image): Rescale images even if the window isn't on the current frame. --- lisp/net/shr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 93408840ab6..22d4cde34a7 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1121,7 +1121,7 @@ WIDTH and HEIGHT are the sizes given in the HTML data, if any. The size of the displayed image will not exceed MAX-WIDTH/MAX-HEIGHT. If not given, use the current window width/height instead." - (if (not (get-buffer-window (current-buffer))) + (if (not (get-buffer-window (current-buffer) t)) (create-image data nil t :ascent 100) (let* ((edges (window-inside-pixel-edges (get-buffer-window (current-buffer)))) -- 2.39.5