home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14886 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.3 KB  |  38 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cs.utexas.edu!oakhill!jolt.sps.mot.com!user
  3. From: Jim_Holt@aprdlgtr.sps.mot.com (Jim Holt)
  4. Subject: Re: GWorlds with B&W Macs
  5. Message-ID: <Jim_Holt-020992074834@jolt.sps.mot.com>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: news@oakhill.sps.mot.com
  8. Nntp-Posting-Host: 222.20.248.206
  9. Organization: Motorola
  10. References: <Jim_Holt-010992093710@jolt.sps.mot.com> <cshotton-010992130818@oac2.hsc.uth.tmc.edu>
  11. Date: Wed, 2 Sep 1992 12:48:52 GMT
  12. Lines: 24
  13.  
  14. In article <cshotton-010992130818@oac2.hsc.uth.tmc.edu>,
  15. cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) wrote:
  16. > In article <Jim_Holt-010992093710@jolt.sps.mot.com>,
  17. > Jim_Holt@aprdlgtr.sps.mot.com (Jim Holt) wrote:
  18. > > 
  19. > >         SetGWorld (tempGWorld, nil);
  20. > > 
  21. > >   /********* program goes away on the following call !! ************/
  22. > > 
  23. > >         DrawPicture(tempPic,&tempRect);
  24. > You didn't lock your pixMap before drawing to it. You need some code like:
  25. >   err=LockPixels(tempGWorld->portPixMap);
  26. > before you call DrawPicture.
  27.  
  28. Thanks to all who responded to this post.  Again the net bails me out ..
  29.  
  30. Locking the pixMap was indeed the cure to my problem.  It even says ya
  31. gotta do this in IM-VI, on the page after the one where it says you can use
  32. GWorlds on B&W macs  :-)
  33.  
  34. -jh
  35.