diff options
| author | Gerd Moellmann | 2001-04-03 13:51:41 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-04-03 13:51:41 +0000 |
| commit | 51e8cfdd488650ee032e2f908f2579795f28f42f (patch) | |
| tree | 1c8fdf38328814f379f4ca9b45cf2ed0ff9461c7 | |
| parent | de073ce36fa1d7de145500592fbcb344dc87dbbe (diff) | |
| download | emacs-51e8cfdd488650ee032e2f908f2579795f28f42f.tar.gz emacs-51e8cfdd488650ee032e2f908f2579795f28f42f.zip | |
(fancy-splash-head): Use splash8.xpm for color
depth 8.
| -rw-r--r-- | lisp/startup.el | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index d8c4b333b6e..47fd84332d2 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1074,10 +1074,16 @@ where FACE is a valid face specification, as it can be used with | |||
| 1074 | 1074 | ||
| 1075 | (defun fancy-splash-head () | 1075 | (defun fancy-splash-head () |
| 1076 | "Insert the head part of the splash screen into the current buffer." | 1076 | "Insert the head part of the splash screen into the current buffer." |
| 1077 | (let* ((img (create-image (or fancy-splash-image | 1077 | (let* ((image-file (cond ((stringp fancy-splash-image) |
| 1078 | (if (and (display-color-p) | 1078 | fancy-splash-image) |
| 1079 | (image-type-available-p 'xpm)) | 1079 | ((and (display-color-p) |
| 1080 | "splash.xpm" "splash.pbm")))) | 1080 | (image-type-available-p 'xpm)) |
| 1081 | (if (and (fboundp 'x-display-planes) | ||
| 1082 | (= (funcall 'x-display-planes) 8)) | ||
| 1083 | "splash8.xpm" | ||
| 1084 | "splash.xpm")) | ||
| 1085 | (t "splash.pbm"))) | ||
| 1086 | (img (create-image image-file)) | ||
| 1081 | (image-width (and img (car (image-size img)))) | 1087 | (image-width (and img (car (image-size img)))) |
| 1082 | (window-width (window-width (selected-window)))) | 1088 | (window-width (window-width (selected-window)))) |
| 1083 | (when img | 1089 | (when img |
| @@ -1144,9 +1150,7 @@ where FACE is a valid face specification, as it can be used with | |||
| 1144 | (defun fancy-splash-default-action () | 1150 | (defun fancy-splash-default-action () |
| 1145 | "Default action for events in the splash screen buffer." | 1151 | "Default action for events in the splash screen buffer." |
| 1146 | (interactive) | 1152 | (interactive) |
| 1147 | (setq hansi last-nonmenu-event) | ||
| 1148 | (push last-command-event unread-command-events) | 1153 | (push last-command-event unread-command-events) |
| 1149 | (setq unread (copy-sequence unread-command-events)) | ||
| 1150 | (throw 'exit nil)) | 1154 | (throw 'exit nil)) |
| 1151 | 1155 | ||
| 1152 | 1156 | ||
| @@ -1177,9 +1181,7 @@ where FACE is a valid face specification, as it can be used with | |||
| 1177 | (recursive-edit)) | 1181 | (recursive-edit)) |
| 1178 | (cancel-timer timer) | 1182 | (cancel-timer timer) |
| 1179 | (setq display-hourglass old-hourglass) | 1183 | (setq display-hourglass old-hourglass) |
| 1180 | (kill-buffer splash-buffer) | 1184 | (kill-buffer splash-buffer))))) |
| 1181 | (setq hansi2 last-nonmenu-event) | ||
| 1182 | )))) | ||
| 1183 | 1185 | ||
| 1184 | 1186 | ||
| 1185 | (defun use-fancy-splash-screens-p () | 1187 | (defun use-fancy-splash-screens-p () |