Preserve the aspect ratio when fitting to width/height
commit999c35f47271f099e178ad2e2ea015509acbe633
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)
tree14d52e35d584c3f434015efb2fca363e68193282
parent3cab7dd46f43dfb3131a08d7d9fc5c05f221c454
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