home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!data.nas.nasa.gov!taligent!apple!cambridge.apple.com!wilcox@cmns.think.com
- From: wilcox@cmns.think.com
- Newsgroups: comp.lang.lisp.mcl
- Subject: main-screen-color-p
- Message-ID: <9208261504.AA11331@cmns-sun.think.com>
- Date: 26 Aug 92 15:04:51 GMT
- Sender: info-mcl-request@cambridge.apple.com
- Lines: 11
- Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
- Original-To: info-mcl@cambridge.apple.com
-
- Here's a quick way to tell if the main screen can display in color:
-
- (defun main-screen-color-p ()
- "Is the main screen capable of displaying color?"
- ;; *color-available* just tells you if color quickdraw is in ROM
- ;; it doesn't tell you if the screen can display in color
- ;; #_getmaindevice trap gives handle to screen containing menubar
- (let ((screen (#_getmaindevice))
- (gddevtype 0))
- (#_testdeviceattribute screen gddevtype)
- ))
-