home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20353 < prev    next >
Encoding:
Text File  |  1992-12-28  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!umn.edu!mmm.serc.3m.com!us277614
  3. From: us277614@mmm.serc.3m.com (Dave T. Berquist)
  4. Subject: Re: What am I doin wrong?
  5. Message-ID: <1992Dec28.151911.12069@mmm.serc.3m.com>
  6. Organization: 3M Company
  7. References: <1992Dec27.133008.1@vax1.mankato.msus.edu>
  8. Date: Mon, 28 Dec 92 15:19:11 GMT
  9. Lines: 25
  10.  
  11. In article <1992Dec27.133008.1@vax1.mankato.msus.edu> t303grey@vax1.mankato.msus.edu writes:
  12. >
  13. >*** problem 1: (Error checking code are deleted, assume best case)
  14. >
  15.  
  16. >    pixBase = GetGWorldPixMap( offWorld );
  17. >
  18.  
  19. >    CopyBits (pixBase, ........
  20. >
  21. >  Strange thing about this code is if I substitute the 1st argument of CopyBits
  22. >call to &(*(GrafPtr) offWorld).portBits it works fine. But according to IM7 we
  23. >should never dereference GWorld (p21-5 paragraph 3) to get to pixMap. Right?
  24. >
  25.  
  26. Under system 7 you should use the GetGWorldPixMap call.  Under system 6,
  27. however, you must dereference the the GWorld because GetGWorldPixMap
  28. does not work correctly.
  29.  
  30. Hope this helps.  ( I'm not sure about your palette problem ).
  31. -- 
  32.  
  33.  
  34. --------------------------------------------------------------------
  35. Dave Berquist      Software Engr, 3M Company      dtberquist@mmm.com
  36.