Re: [AD] vsync() in Windows?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> When I start my little paint program in 8-bit on a 32-bit desktop (G400,
> GFX_DIRECTX_WIN, Win98SE)  And set a palette, the screen flashes between
> black and my color 0 for about half a second and everything draws all black
> to begin with until I refresh.  What I need to do is pause until the palette
> is fully installed.  Several vsync()s after setting the palette does not
> help.

set_palette automatically calls vsync *before* the change... so if it doesn't work AFAIK the problem can't be solved using vsync...

--

"What's wrong with C++ ?"
"The ++"
             Lorenzo Petrone

_.-:/°^^°\:-._.-:/°^^°\:-._          __.         ____
 - Lo'oRiS il Kabukimono -          / /|       /^___ \
Real Name: Lorenzo Petrone         / / /      / /L_/ /
e-mail: _lano_@xxxxxxxxxx          / / /      /  ___-°/
irc.azzurra.org #lano            / /_/__    /  /|__-°
digilander.iol.it/lano666       /______/|  /__/ /
^°\:-.__.-:/°^°\:-.__.-:/°^     |______|/  |__L/



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/