home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12962 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.3 KB

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