X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=blobdiff_plain;f=elpher.el;h=ccba71639b54767e688450c2cf54754065f8f09b;hp=e4d0e6e882989d1c0155b6847db8c7db4d3a9348;hb=bc4fbb5c3361454f9d18e03960c1febcbdcf0b9b;hpb=7a7fc41273acf74bf2982a9607cf066c15f875d7 diff --git a/elpher.el b/elpher.el index e4d0e6e..ccba716 100644 --- a/elpher.el +++ b/elpher.el @@ -1132,8 +1132,8 @@ If ADDRESS is not supplied or nil the record is rendered as an nil t)) (window (get-buffer-window elpher-buffer-name))) (when window - (setf (image-property image :max-width) (window-pixel-width window)) - (setf (image-property image :max-height) (window-pixel-height window))) + (setf (image-property image :max-width) (window-body-width window t)) + (setf (image-property image :max-height) (window-body-height window t))) (elpher-with-clean-buffer (insert-image image) (elpher-restore-pos)))