home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!apple!apple!apple.com!jpugh
- From: jpugh@apple.com (Jon Pugh)
- Newsgroups: comp.sys.mac.programmer
- Subject: gDevice^^.gdMode?
- Message-ID: <28483@goofy.Apple.COM>
- Date: 19 Jul 92 00:40:16 GMT
- Sender: usenet@Apple.COM
- Organization: Apple Computer, Inc.
- Lines: 29
-
- Is there a place that defines the modes available in a GDevice's gdMode
- field? I suppose the hardware manual does, but it'll take a couple of
- days to get it from the library.
-
- I have written an XFCN which returns the current depth of a monitor. I simply
- look at the gdMode field and parse it. Since my Quadra supports everything
- but 16 bit, this is pretty easy. The modes appear to be:
-
- mode bits
- 128 = 1
- 129 = 2
- 130 = 4
- 131 = 8
- 132 = 32
-
- I am simply assuming that anything else is 16, but I would like to know
- what mode 16 bits really is. There isn't a missing spot in the progression.
-
- My XFCN is on ftp.apple.com as /pub/pugh/hyperstuff/getdepth.sit.hqx
- It will return the mode for 16 bit monitors instead of 16. If someone
- were willing to simply run it and tell me what it says, I would be eternally
- grateful (well, maybe for a couple of weeks at least).
-
- So far, every machine I have run this on works. If there is a proper way
- of determining the bit depth, I would be glad to use it. ;)
-
- Thanx. Email would be nice, but cc the group, please.
-
- Jon
-