> > > > Also, I wait for the refresh using something like this code:
> > > >
> > > > void spin_until_refresh_complete( void ) {
> > > > for(;;) if( inb( 0x3da ) & 8 ) break;
> > > > }
Yeah, this loop was wrong. Sorry.
for(;i;--i) {
/* wait for the refresh to occur. */
if( (inb( BASEPORT ) & 8) ) break;
}
/* now we're inside the refresh */
for(;i;--i) {
/* wait for the refresh to stop. */
if( !(inb( BASEPORT ) & 8) ) break;
}
That's the actual cut-and-paste from my crap first-attempt code.
--
Billy Biggs
[EMAIL PROTECTED]
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert