[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: info-mcl
- Subject: Re: main-screen-color-p
- From: firstname.lastname@example.org (Malcolm Pradhan)
- Date: 29 Aug 92 01:02:05 GMT
- Newsgroups: comp.lang.lisp.mcl
- Organization: Faculty of Medicine, University of Adelaide
- References: <9208261535.AA13352@media-lab.mit.edu>
- Sender: email@example.com
In article <9208261535.AA13352@media-lab.mit.edu> Henry Lieberman,
>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.
Medical Computing, Faculty of Medicine _--_|\
University of Adelaide, South Australia / \
InterNet: firstname.lastname@example.org \_.--x_/
Fax: +618 223 2076 :x marks the spot: v