home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zephyr.ens.tek.com!uw-beaver!ubc-cs!unixg.ubc.ca!bkiss
- From: bkiss@unixg.ubc.ca (Bill Kiss)
- Newsgroups: comp.sys.mac.programmer
- Subject: Copy(Deep)Mask Problem
- Message-ID: <1992Jul31.045306.6537@unixg.ubc.ca>
- Date: 31 Jul 92 04:53:06 GMT
- Sender: news@unixg.ubc.ca (Usenet News Maintenance)
- Followup-To: comp.sys.mac.programmer
- Distribution: comp.sys.mac.programmer
- Organization: University of British Columbia, Vancouver, B.C., Canada
- Lines: 26
- Nntp-Posting-Host: unixg.ubc.ca
-
- Hello people,
-
- Maybe I'm particularly stupid tonight (not a first) or there is a problem
- with CopyMask/CopyDeepMask that I'm not aware off. Here's the game summary:
-
- 1. I have two offscreen (redundant?) GWorlds of identical proportions. One
- contains an 8-bit deep PixMap and the other contains its mask.
-
- 2. When the mask is a 1-bit deep PixMap, CopyMask works dandy.
-
- 3. When the mask is an 8-bit deep PixMap and I Copy(Deep)Mask the whole
- PixMap (ie. using portRect), it works tickety-boo too.
-
- 4. However, when the mask is an 8-bit deep PixMap and I copy a subset of the
- portRect, I get wild (ie. bad) results.
-
- I have confirmed that (1) the subset rect is valid and contains the data that I
- want to copy, (2) all the relevant PixMaps are locked, (3) the GWorlds fields
- all make sense, and (4) Clarus is in the barn. And, no, after doing everything
- but stand on my head to make this work, I don't feel like single-stepping
- through the ROM (at least not tonight)...
-
- Any ideas/suggestions would be much appreciated!
-
- Bill Kiss, Programmer/Peon
- Dept. of Ophthalmology, UBC
-