Preserve the aspect ratio when fitting to width/height
commit3c898512e8a140e3a9bb82394897d89704513d26
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 18 Sep 2014 18:34:59 +0000 (18 20:34 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 18 Sep 2014 18:34:59 +0000 (18 20:34 +0200)
treea287372344dec83803a3482f03f672346eb97315
parentbe92f9257a5f01c83777019d38a8477816190447
Preserve the aspect ratio when fitting to width/height

* image-mode.el (image-toggle-display-image): If we have a
`fit-width' or a `fit-height', don't limit the size of the image
to the window size, because that doesn't preserve the aspect
ratio.
lisp/ChangeLog
lisp/image-mode.el