home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 21985 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.4 KB

  1. Path: sparky!uunet!olivea!pagesat!netsys!agate!apple!kaleida.com!sansorge.kaleida.com!user
  2. From: ansorge@kaleida.com (Sean)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: WindowPtr's PortBits !?!
  5. Message-ID: <ansorge-220193135749@sansorge.kaleida.com>
  6. Date: 22 Jan 93 21:55:07 GMT
  7. Followup-To: comp.sys.mac.programmer
  8. Organization: Kaleida Labs
  9. Lines: 19
  10. NNTP-Posting-Host: sansorge.kaleida.com
  11.  
  12. I'm writing a custom copybits routine, which works beautifully when copying
  13. from one offscreen pixmap to another, but when I tried copying stuff to the
  14. screen I noticed something strange: the PortBits field of a WindowPtr
  15. doesn't actually point at a valid BitMap. I would think it would point at
  16. the screen, but it doesn't. The BoundsRect field is garbage, and while the
  17. BaseAddr seems to be a valid pointer in that it points at something that is
  18. really in memory, I have no idea what it is. Apple's CopyBits gets the same
  19. data and makes sense of it, so there is some meaning behind it, but does
  20. anyone know how to decipher it?
  21.  
  22. I could just grab the device the window is in and get the screen's pixmap
  23. that way, but I got insanely curious when I discovered this.
  24.  
  25. Thanks!
  26.  
  27. .........................................................................
  28. Sean Ansorge                                               (415) 966-0865
  29. Kaleida Labs, Inc.                                    ansorge@kaleida.com
  30. .........................................................................
  31.