home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15190 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.5 KB  |  60 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!sol.ctr.columbia.edu!mhall
  3. From: mhall@occs.cs.oberlin.edu (Matthew Hall)
  4. Subject: Re: How many colours have YOU got?
  5. Organization: Oberlin College Computer Science
  6. In-Reply-To: bell@teal.csn.org's message of Tue, 8 Sep 1992 08:49:04 GMT
  7. References: <Bu94Hs.4H4@csn.org>
  8. Message-ID: <MHALL.92Sep8222315@occs.cs.oberlin.edu>
  9. Sender: news@ctr.columbia.edu (The Daily Lose)
  10. Date: Wed, 9 Sep 1992 03:23:15 GMT
  11. X-Posted-From: occs.cs.oberlin.edu
  12. X-Posted-Through: sol.ctr.columbia.edu
  13. Lines: 45
  14.  
  15. In article <Bu94Hs.4H4@csn.org> bell@teal.csn.org (Bell Scott) writes:
  16. >
  17. >       Question:  In CycleSpy(tm), I have the Help and About windows set to
  18. >   look at 'thePort' to determine the current colour depth.  However, occasionally
  19. >   this will cause a crash because for some weird reason the PixMap field becomes
  20. >   an invalid address.  The question is: How can I reliably tell what the current
  21. >   colour depth is?  ie: The user can change it via the 'Monitors' CDEV without
  22. >   my specific knowledge.  Before I refresh in response to an update event how do
  23. >   I know what the depth is so I can display a legible window?
  24. >
  25. >   Scott R. Bell
  26. >   PS:  Also, I am Colorado SuperNet using 'rn' under SunOS; how do I simply 'post'
  27. >   a message?  Right now all I can do is press 'f' and delete the References....
  28. >   SRB
  29.  
  30. The color depth for the current device is in
  31. TheGDevice^^.gdpmap^^.pixelsize.
  32. In multiscreen devices, your window may span more than one device.  To
  33. figure out which device your window is in, look at all of the boundary
  34. rectangles of all the devices (I believe the devices are in a linked
  35. list).  How you choose which depth you want to use (the deepest, the
  36. shallowest, or the one with the most area) is up to you.  The
  37. structure of GDevices is in IMV and VI.  You should probably read
  38. about them.
  39.  
  40. Hope This helps
  41. -matt hall
  42.  
  43. p.s. in rn, go to the end of the articles (should say something like
  44. 'End of articles')  theres a key ($, &, or ? - should be in help) that
  45. will do this.  Then hit f.  It should ask you if you want to compose a
  46. new article.  This is from my experience on an epx system.  It should
  47. be the same for you
  48.  
  49. --
  50.  
  51.  
  52. -------------------------------------------------------------------------------
  53. Matt Hall.    mhall@occs.cs.edu  OR  SMH9666@OBERLIN.BITNET
  54.               (216)-775-5805 (That's a Cleveland Area code. Lucky Me)
  55.  
  56. "If a man comes up to you and says:
  57.     'A dog just carried away your ear.'
  58. Do you run after the dog, or search first for your ear?" - Moon over Morocco
  59.   
  60.