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