]> code.delx.au - gnu-emacs/commitdiff
(use-fancy-splash-screens-p): Use frame-height
authorRichard M. Stallman <rms@gnu.org>
Thu, 14 Dec 2006 15:16:52 +0000 (15:16 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 14 Dec 2006 15:16:52 +0000 (15:16 +0000)
instead of window-height.  Pass frame to image-size.

lisp/startup.el

index 2573d0790ea5970c709bc19779e06bb6a984c6b3..8d1c254d7a13f6e2ec91f1ffedafb2a9928978c3 100644 (file)
@@ -1451,9 +1451,12 @@ we put it on this frame."
                                      (if (and (display-color-p)
                                               (image-type-available-p 'xpm))
                                          "splash.xpm" "splash.pbm"))))
-              (image-height (and img (cdr (image-size img))))
-              (window-height (1- (window-height (frame-selected-window frame)))))
-         (> window-height (+ image-height 19)))))))
+              (image-height (and img (cdr (image-size img nil frame))))
+              ;; We test frame-height so that, if the frame is split
+              ;; by displaying a warning, that doesn't cause the normal
+              ;; splash screen to be used.
+              (frame-height (1- (frame-height frame))))
+         (> frame-height (+ image-height 19)))))))
 
 
 (defun normal-splash-screen (&optional hide-on-input)