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

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