Path: utzoo!censor!geac!alias!jsmith From: jsmith@alias.UUCP (Jeff Smith) Newsgroups: comp.sys.amiga.tech Subject: Re: Double-Buffering in a window Message-ID: <714@alias.UUCP> Date: 11 Jan 90 14:45:12 GMT References: <885@mindlink.UUCP> <1990Jan4.104416.15515@gdt.bath.ac.uk> Reply-To: jsmith@alias.UUCP (Jeff Smith) Organization: Alias Research Inc., Toronto, Canada Lines: 18 I have only done simple double buffering on the Amiga, but I use a techniqwe that, while it is a kludge, works well enough for my purposes. Having picked up this thread 'already in progress' I'm not sure if this has been mentioned or not. Disclaimers thus suitably behind us... I usually open two, coincident windows and write to one, then the other. The act of swapping buffers is just a matter of promoting the back window to the front. You have to watch for WINDOWDRAG events and make sure that if the user moves one window, the other moves with it, but those are trivial niceties. I'm certain that there are other methods that will work much faster, but this is a quick hack that I have put into a link module of my own. If and when a better method comes my way, I'll probably switch. Hope somebody can use this. Smitty