diff options
| author | Eli Zaretskii | 2001-07-17 12:58:19 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-07-17 12:58:19 +0000 |
| commit | ddc456e4ec0d2dea2025f23f6559844d1b13c27e (patch) | |
| tree | 8d57d0dbd7de021f112d4fa2bb220ea13a70ec04 | |
| parent | b31d75219201e01658c33c9f15a72790e4566540 (diff) | |
| download | emacs-ddc456e4ec0d2dea2025f23f6559844d1b13c27e.tar.gz emacs-ddc456e4ec0d2dea2025f23f6559844d1b13c27e.zip | |
(display-images-p): New function.
| -rw-r--r-- | lisp/frame.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index 7720b796e8f..c888334aad4 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -904,6 +904,18 @@ DISPLAY can be a display name, a frame, or nil (meaning the selected | |||
| 904 | frame's display)." | 904 | frame's display)." |
| 905 | (not (null (memq (framep-on-display display) '(x w32 mac))))) | 905 | (not (null (memq (framep-on-display display) '(x w32 mac))))) |
| 906 | 906 | ||
| 907 | (defun display-images-p (&optional display) | ||
| 908 | "Return non-nil if DISPLAY can display images. | ||
| 909 | |||
| 910 | DISPLAY can be a display name, a frame, or nil (meaning the selected | ||
| 911 | frame's display)." | ||
| 912 | (and (display-graphic-p display) | ||
| 913 | (fboundp 'image-mask-p) | ||
| 914 | (fboundp 'image-size) | ||
| 915 | ;; FIXME: this will need to be revisited when the Windows port | ||
| 916 | ;; supports images. | ||
| 917 | (not (eq (framep-on-display display) 'w32)))) | ||
| 918 | |||
| 907 | (defalias 'display-multi-frame-p 'display-graphic-p) | 919 | (defalias 'display-multi-frame-p 'display-graphic-p) |
| 908 | (defalias 'display-multi-font-p 'display-graphic-p) | 920 | (defalias 'display-multi-font-p 'display-graphic-p) |
| 909 | 921 | ||