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