aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/image/image-dired.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/image/image-dired.el')
-rw-r--r--lisp/image/image-dired.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/image/image-dired.el b/lisp/image/image-dired.el
index a58eaa4775d..1444dfb2cf4 100644
--- a/lisp/image/image-dired.el
+++ b/lisp/image/image-dired.el
@@ -1056,13 +1056,13 @@ See also `image-dired-line-up-dynamic'."
1056Calculate how many thumbnails fit." 1056Calculate how many thumbnails fit."
1057 (interactive nil image-dired-thumbnail-mode) 1057 (interactive nil image-dired-thumbnail-mode)
1058 (let* ((char-width (frame-char-width)) 1058 (let* ((char-width (frame-char-width))
1059 (width (image-dired-window-width-pixels (image-dired-thumbnail-window))) 1059 (width (window-body-width (image-dired-thumbnail-window) t))
1060 (image-dired-thumbs-per-row 1060 (image-dired-thumbs-per-row
1061 (/ width 1061 (/ width
1062 (+ (* 2 image-dired-thumb-relief) 1062 (+ (* 2 image-dired-thumb-relief)
1063 (* 2 image-dired-thumb-margin) 1063 (* 2 image-dired-thumb-margin)
1064 (image-dired-thumb-size 'width) 1064 (image-dired-thumb-size 'width)
1065 char-width)))) 1065 char-width))))
1066 (image-dired-line-up))) 1066 (image-dired-line-up)))
1067 1067
1068(defun image-dired-line-up-interactive () 1068(defun image-dired-line-up-interactive ()
@@ -1368,7 +1368,7 @@ completely fit)."
1368(defun image-dired-display-window-width (window) 1368(defun image-dired-display-window-width (window)
1369 "Return width, in pixels, of WINDOW." 1369 "Return width, in pixels, of WINDOW."
1370 (declare (obsolete nil "29.1")) 1370 (declare (obsolete nil "29.1"))
1371 (- (image-dired-window-width-pixels window) 1371 (- (window-body-width window t)
1372 image-dired-display-window-width-correction)) 1372 image-dired-display-window-width-correction))
1373 1373
1374(defun image-dired-display-window-height (window) 1374(defun image-dired-display-window-height (window)