www.delorie.com/archives/browse.cgi | search |
From: | Dead_and_gone <alaric AT novia DOT net> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Help: What causes screen flash problem in Allegro 2.0? |
Date: | Mon, 06 Jan 1997 08:33:34 -0600 |
Organization: | Novia Internetworking <> 33.6kbps dialup; 402/390-2NET |
Lines: | 27 |
Message-ID: | <32D10D3E.52DB@novia.net> |
References: | <32ccb401 DOT 3331475 AT news DOT diac DOT com> <5aqpf4$704 AT nntp DOT novia DOT net> |
NNTP-Posting-Host: | shadowwing.novia.net |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Alaric Dailey wrote: > > radams AT mail DOT diac DOT com wrote: > : 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; > : } > : } > : > does scroll_screen() wait for a vertical retrace if not that is probably > your problem, otherwise I don't know let me ponder and I will try to come > up with something else. ok I feel pretty STUPID after re-reading the original message I you nee to add these two lines to your code to make it wait till the end of the verical retrace- while (!(inportb(0x3DA)&0x08)); while ((inportb(0x3DA)&0x08)); -Alaric Dailey
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |