mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(display-images-p): New function.
This commit is contained in:
parent
b31d752192
commit
ddc456e4ec
1 changed files with 12 additions and 0 deletions
|
|
@ -904,6 +904,18 @@ DISPLAY can be a display name, a frame, or nil (meaning the selected
|
|||
frame's display)."
|
||||
(not (null (memq (framep-on-display display) '(x w32 mac)))))
|
||||
|
||||
(defun display-images-p (&optional display)
|
||||
"Return non-nil if DISPLAY can display images.
|
||||
|
||||
DISPLAY can be a display name, a frame, or nil (meaning the selected
|
||||
frame's display)."
|
||||
(and (display-graphic-p display)
|
||||
(fboundp 'image-mask-p)
|
||||
(fboundp 'image-size)
|
||||
;; FIXME: this will need to be revisited when the Windows port
|
||||
;; supports images.
|
||||
(not (eq (framep-on-display display) 'w32))))
|
||||
|
||||
(defalias 'display-multi-frame-p 'display-graphic-p)
|
||||
(defalias 'display-multi-font-p 'display-graphic-p)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue