Mail Archives: djgpp/1997/01/03/15:14:40
Hi,
not too sure what your code does. Looks like you are changing
pages. Also not at all sure how modern vga type controllers do their
stuff. Any chance that you are re initilizing the controller or other
hardware? Also if you change pages in an unSYNCHRONOUS way could that
also do it? Some of the older controllers had a flag you could test ...
like err um
reset video_refresh_flag;
while(video_refresh_flag == FALSE)
{do (nothing);
}
then do your code.
>
> void flip_page() {
> if (active_page==page1) {
> scroll_screen(0,0);
> active_page=page2;
> inactive_page=page1;
> }
> else {
> scroll_screen(0,SCREEN_H);
> active_page=page1;
> inactive_page=page2;
> }
> }
- Raw text -