home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12425 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.8 KB

  1. Path: sparky!uunet!stanford.edu!rutgers!cbmvax!chrisg
  2. From: chrisg@cbmvax.commodore.com (Chris Green)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Safe double buffering
  5. Message-ID: <34433@cbmvax.commodore.com>
  6. Date: 18 Aug 92 12:41:08 GMT
  7. References: <mcuddy.714096993@fensende>
  8. Reply-To: chrisg@cbmvax.commodore.com (Chris Green)
  9. Organization: Commodore, West Chester, PA
  10. Lines: 29
  11.  
  12. In article <mcuddy.714096993@fensende> mcuddy@fensende.Rational.COM (Mike Cuddy) writes:
  13. >What I'd like to do is to do the double-buffering like the example in the 1.3
  14. >RKM and create two bitmaps, two views and two copper lists and swap them 
  15. >with LoadView().  (not hard)  
  16. >
  17. >My question is:  Here's my proposed main page-flip loop... is this right 
  18. >(legal?)
  19.  
  20.     Looks OK, except:
  21. >
  22. >    /* here's the part I have a question about... */
  23. >    if (view.SHFCprList != cur_page_cpr_list[0] ) {
  24. >        /* open a window on workbench screen with a 'continue' 
  25. >        ** gadget in it... 
  26. >        */
  27.     why are you checking for the SHFCprList in your view to change?
  28. It won't change without you changing it (or calling mrgcop).
  29.     You're not installing your own copper lists into the intuition view, are
  30. you? That's certainly not legal or safe.
  31.     What you should probably do instead is see if GfxBase->ActiView points
  32. at your view.
  33. -- 
  34. *-------------------------------------------*---------------------------*
  35. |Chris Green - Graphics Software Engineer   - chrisg@commodore.COM      f
  36. |                  Commodore-Amiga          - uunet!cbmvax!chrisg       n
  37. |My opinions are my own, and do not         - icantforgettheimpression  o
  38. |necessarily represent those of my employer.- youmadeyouleftaholeinthe  r
  39. |"A screaming comes across the sky..."      - backofmyhead              d
  40. *-------------------------------------------*---------------------------*
  41.