@@ -79,7 +79,7 @@ When `mime-image-normalize-xbm' is non-nil, original size is
7979always used for xbm image."
8080 :group 'mime-view
8181 :type '(choice (const :tag " Use original size" nil )
82- (float :tag " Ratio to frame width " )
82+ (float :tag " Ratio to window body height " )
8383 (integer :tag " Specify in pixel" )))
8484
8585(defcustom mime-image-max-width nil
@@ -92,7 +92,7 @@ When `mime-image-normalize-xbm' is non-nil, original size is
9292always used for xbm image."
9393 :group 'mime-view
9494 :type '(choice (const :tag " Use original size" nil )
95- (float :tag " Ratio to frame height " )
95+ (float :tag " Ratio to window body width " )
9696 (integer :tag " Specify in pixel" )))
9797
9898(defcustom mime-image-normalize-xbm t
@@ -131,14 +131,14 @@ Furthermore, image scaling for xbm image is disabled."
131131 `(:max-width
132132 ,(if (integerp mime-image-max-width)
133133 mime-image-max-width
134- (floor (* (frame-pixel -width )
134+ (floor (* (window-body -width nil t )
135135 mime-image-max-width)))))
136136 (and (or scale-p imagemagick)
137137 mime-image-max-height
138138 `(:max-height
139139 ,(if (integerp mime-image-max-height)
140140 mime-image-max-height
141- (floor (* (frame-pixel -height )
141+ (floor (* (window-body -height nil t )
142142 mime-image-max-height)))))
143143 props))
144144 (cond
0 commit comments