+2007-05-23 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * mm-decode.el (mm-image-fit-p): Return t if image size is just the
+ same as window size.
+
2007-05-22 Kevin Ryde <user42@zip.com.au>
* message.el (message-font-lock-keywords): Use message-header-xheader
;; XEmacs' glyphs can actually tell us about their width, so
;; lets be nice and smart about them.
(or mm-inline-large-images
- (and (< (glyph-width image) (window-pixel-width))
- (< (glyph-height image) (window-pixel-height))))
+ (and (<= (glyph-width image) (window-pixel-width))
+ (<= (glyph-height image) (window-pixel-height))))
(let* ((size (image-size image))
(w (car size))
(h (cdr size)))
(or mm-inline-large-images
- (and (< h (1- (window-height))) ; Don't include mode line.
- (< w (window-width))))))))
+ (and (<= h (1- (window-height))) ; Don't include mode line.
+ (<= w (window-width))))))))
(defun mm-valid-image-format-p (format)
"Say whether FORMAT can be displayed natively by Emacs."