From: Pyros Newsgroups: comp.os.msdos.djgpp Subject: Re: Page flipping with allegro Date: Tue, 24 Aug 1999 23:23:49 +0300 Organization: NetVision Israel Lines: 48 Message-ID: <37C2FF54.E3CDB12B@netvision.net.il> References: NNTP-Posting-Host: ras1-p76.hdr.netvision.net.il Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.netvision.net.il 935526077 23289 62.0.176.78 (24 Aug 1999 20:21:17 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 24 Aug 1999 20:21:17 GMT X-Mailer: Mozilla 4.51 [en] (Win95; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com i use this proc i wrote, never tested it's speed against other ones, it uses vesa1, but maybe this will work for ya. BITMAP * curpage,page1,page2; int pagenum=0; void flippages() { if (pagenum) { scroll_screen(0,480); pagenum=0; curpage=page1; } else { scroll_screen(0,0); pagenum=1; curpage=page2; } } //the init i do in the main func is: if (set_gfx_mode(GFX_VESA1,640,480,640,480*2)<0) { printf("ERROR: Can't allocate enough video memory."); return 1; } page1=create_sub_bitmap(screen,0,0,640,480); page2=create_sub_bitmap(screen,0,480,640,480); curpage=page2; -- Pyros: _O_ M |\P/|/ |) ( o|-| | | The Man Who Holds Fire In His Hand ---------------------------------- Avishay Yagoda http://www.geocities.com/SiliconValley/Lakes/6993 E-mail: yagoda AT netvision DOT net DOT il