aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-12-14 15:16:52 +0000
committerRichard M. Stallman2006-12-14 15:16:52 +0000
commita68ccb40d6d0d89ef65d9e5e80b0c393fe29d6c2 (patch)
treef5d16f09830127373d2cc567ba46e2c2c749a8c9
parentb1c6aa6ebef81dc52589098fcac038dd8f28ad2c (diff)
downloademacs-a68ccb40d6d0d89ef65d9e5e80b0c393fe29d6c2.tar.gz
emacs-a68ccb40d6d0d89ef65d9e5e80b0c393fe29d6c2.zip
(use-fancy-splash-screens-p): Use frame-height
instead of window-height. Pass frame to image-size.
-rw-r--r--lisp/startup.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 2573d0790ea..8d1c254d7a1 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1451,9 +1451,12 @@ we put it on this frame."
1451 (if (and (display-color-p) 1451 (if (and (display-color-p)
1452 (image-type-available-p 'xpm)) 1452 (image-type-available-p 'xpm))
1453 "splash.xpm" "splash.pbm")))) 1453 "splash.xpm" "splash.pbm"))))
1454 (image-height (and img (cdr (image-size img)))) 1454 (image-height (and img (cdr (image-size img nil frame))))
1455 (window-height (1- (window-height (frame-selected-window frame))))) 1455 ;; We test frame-height so that, if the frame is split
1456 (> window-height (+ image-height 19))))))) 1456 ;; by displaying a warning, that doesn't cause the normal
1457 ;; splash screen to be used.
1458 (frame-height (1- (frame-height frame))))
1459 (> frame-height (+ image-height 19)))))))
1457 1460
1458 1461
1459(defun normal-splash-screen (&optional hide-on-input) 1462(defun normal-splash-screen (&optional hide-on-input)