]> git.eshelyaron.com Git - emacs.git/commitdiff
Make shr scale images on all frames
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 29 Oct 2019 12:56:49 +0000 (13:56 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 29 Oct 2019 12:56:49 +0000 (13:56 +0100)
* lisp/net/shr.el (shr-rescale-image): Rescale images even if the
window isn't on the current frame.

lisp/net/shr.el

index 93408840ab61c05d7a99cbbc87b2352581d152ee..22d4cde34a756eb8734d6e9a5b21b9ebed208c52 100644 (file)
@@ -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))))