Mail Archives: djgpp/1999/08/24/21:43:28
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
- Raw text -