unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23074: 25.1.50; X11: `use-fancy-splash-screens-p` erroneously returns nil.
@ 2016-03-21  5:08 Keith David Bershatsky
  2016-03-21 16:03 ` Eli Zaretskii
                   ` (5 more replies)
  0 siblings, 6 replies; 20+ messages in thread
From: Keith David Bershatsky @ 2016-03-21  5:08 UTC (permalink / raw)
  To: 23074

Emacs master branch built `--with-x --with-ns=no` with full image support on an OSX machine (10.6.8) does not display the Emacs logo on the Welcome screen because the final test of `use-fancy-splash-screen-p` returns nil.  If we use 17 instead of 19, the test returns `t` and the Emacs logo is displayed.

I would suggest using a better test like `one-window-p`, because 19 is too big.

    (defun use-fancy-splash-screens-p ()
      "Return t if fancy splash screens should be used."
      (when (and (display-graphic-p)
                 (or (and (display-color-p)
              (image-type-available-p 'xpm))
                     (image-type-available-p 'pbm)))
        (let ((frame (fancy-splash-frame)))
          (when frame
      (let* ((img (create-image (fancy-splash-image-file)))
             (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))))
       ;; The original value added to the `image-height' for the test was 19; however,
       ;; that causes the test to fail on X11 by about 1.5 -- so use 17 instead.
        (> frame-height (+ image-height 17)))))))

Thanks,

Keith





^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2021-12-31 13:27 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-21  5:08 bug#23074: 25.1.50; X11: `use-fancy-splash-screens-p` erroneously returns nil Keith David Bershatsky
2016-03-21 16:03 ` Eli Zaretskii
2016-03-22  1:03 ` Keith David Bershatsky
2016-03-22 16:07   ` Eli Zaretskii
2016-03-23  2:04 ` Keith David Bershatsky
2016-03-25  7:49   ` Eli Zaretskii
2016-03-27  4:04 ` Keith David Bershatsky
2016-03-27 14:57   ` Eli Zaretskii
2016-04-08  8:30   ` Eli Zaretskii
2016-04-08 16:26     ` Keith David Bershatsky
2016-04-09  6:48 ` Keith David Bershatsky
2016-04-09  7:53   ` Eli Zaretskii
2016-04-16 11:59     ` Eli Zaretskii
2020-08-15  4:22       ` Stefan Kangas
2021-04-10 15:33         ` John Hawkinson
2021-04-10 17:35           ` Eli Zaretskii
2021-04-10 17:49             ` John Hawkinson
2021-12-30 22:49             ` John Hawkinson
2021-12-31 13:27               ` Eli Zaretskii
2016-04-09 19:05 ` Keith David Bershatsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).