home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14842 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.2 KB

  1. Path: sparky!uunet!stanford.edu!bcm!lib!oac2
  2. From: cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: GWorlds with B&W Macs
  5. Message-ID: <cshotton-010992130818@oac2.hsc.uth.tmc.edu>
  6. Date: 1 Sep 1992 18:11:45 GMT
  7. References: <Jim_Holt-010992093710@jolt.sps.mot.com>
  8. Sender: usenet@lib.tmc.edu
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Academic Computing
  11. Lines: 19
  12. Nntp-Posting-Host: oac2.hsc.uth.tmc.edu
  13.  
  14. In article <Jim_Holt-010992093710@jolt.sps.mot.com>,
  15. Jim_Holt@aprdlgtr.sps.mot.com (Jim Holt) wrote:
  16. >         SetGWorld (tempGWorld, nil);
  17. >   /********* program goes away on the following call !! ************/
  18. >         DrawPicture(tempPic,&tempRect);
  19.  
  20. You didn't lock your pixMap before drawing to it. You need some code like:
  21.   err=LockPixels(tempGWorld->portPixMap);
  22. before you call DrawPicture.
  23.  
  24. --_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
  25. Chuck Shotton                      |    
  26. Ass't Director, Academic Computing |       "This space for rent."
  27. UT Health Science Center Houston   |  
  28. cshotton@oac.hsc.uth.tmc.edu       |         
  29. _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
  30.