From: Lars Ingebrigtsen Date: Tue, 29 Oct 2019 12:56:49 +0000 (+0100) Subject: Make shr scale images on all frames X-Git-Tag: emacs-27.0.90~841 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0956a65e6f46a04f8fb2bce6e909ff6a10a1c016;p=emacs.git 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. --- 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))))