[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22072: Error in display-startup-screen if create-image fails
From: |
Lars Ingebrigtsen |
Subject: |
bug#22072: Error in display-startup-screen if create-image fails |
Date: |
Thu, 26 Sep 2019 18:27:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Stephen Leake <stephen_leake@stephe-leake.org> writes:
> Richard Copley <rcopley@gmail.com> writes:
>
> Can you test this patch:
[...]
> - (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))))
> - (> frame-height (+ image-height 19)))))))
> + (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 (and img (1- (frame-height frame)))))
> + (and img (> frame-height (+ image-height 19))))))))
I've now fixed this on the trunk inspired by this patch, but slightly
differently.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#22072: Error in display-startup-screen if create-image fails,
Lars Ingebrigtsen <=