home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!baldrick.medicine.adelaide.edu.au!mpradhan
- From: mpradhan@medicine.adelaide.edu.au (Malcolm Pradhan)
- Newsgroups: comp.lang.lisp.mcl
- Subject: Re: main-screen-color-p
- Message-ID: <8364@sirius.ucs.adelaide.edu.au>
- Date: 29 Aug 92 01:02:05 GMT
- References: <9208261535.AA13352@media-lab.mit.edu>
- Sender: news@ucs.adelaide.edu.au
- Organization: Faculty of Medicine, University of Adelaide
- Lines: 28
- Nntp-Posting-Host: baldrick.medicine.adelaide.edu.au
- X-UserAgent: Nuntius v1.1.1d9
- X-XXMessage-ID: <A6C50393D0013808@baldrick.medicine.adelaide.edu.au>
- X-XXDate: Sat, 29 Aug 92 18:36:03 GMT
-
- In article <9208261535.AA13352@media-lab.mit.edu> Henry Lieberman,
- lieber@MEDIA-LAB.MEDIA.MIT.EDU writes:
- >Main-Screen-Color-P still doesn't do it, I'm afraid.
- >On my machine, a color screen, it returns T, but when I set the
- >Monitors control panel to black-and-white, it still returns T.
- >
- >I think what most programs will want to know is whether color pixels
- >are actually reaching the user's retina, not if the screen has the
- >"capability" in some sense to do color display.
-
- I think the best way to check for colour is first to see if the Mac
- you're running on supports colour with Gestalt asking for
- gestaltQuickdrawFeatures, test the result for gestaltHasColor.
-
- Then get the main screens gDevice using GetMainDevice and check
- the current depth of the device by looking in the pixelSize field
- of its gdPMap (ie the graphics device pixel map).
-
- Sorry, I don't have any lisp code for this but it isn't hard.
-
- Regards,
- Malcolm
- _________________________________________________________________
- Malcolm Pradhan
- Medical Computing, Faculty of Medicine _--_|\
- University of Adelaide, South Australia / \
- InterNet: mpradhan@medicine.adelaide.edu.au \_.--x_/
- Fax: +618 223 2076 :x marks the spot: v
-