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