aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/startup.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 15a79f6f5bf..536289c3891 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1890,10 +1890,12 @@ we put it on this frame."
1890 (when frame 1890 (when frame
1891 (let* ((img (create-image (fancy-splash-image-file))) 1891 (let* ((img (create-image (fancy-splash-image-file)))
1892 (image-height (and img (cdr (image-size img nil frame)))) 1892 (image-height (and img (cdr (image-size img nil frame))))
1893 ;; We test frame-height so that, if the frame is split 1893 ;; We test frame-height and not window-height so that,
1894 ;; by displaying a warning, that doesn't cause the normal 1894 ;; if the frame is split by displaying a warning, that
1895 ;; splash screen to be used. 1895 ;; doesn't cause the normal splash screen to be used.
1896 (frame-height (1- (frame-height frame)))) 1896 ;; We subtract 2 from frame-height to account for the
1897 ;; echo area and the mode line.
1898 (frame-height (- (frame-height frame) 2)))
1897 (> frame-height (+ image-height 19))))))) 1899 (> frame-height (+ image-height 19)))))))
1898 1900
1899 1901