Re: forcing synchronous drawing of widgets



Olivier <olivier lx student wau nl> writes: 
How can I check if the image is already drawn on the Xserver before I
continue?

That doesn't work, because various things can cause expose events
which means you will need to redraw again. There's no solution other
than to be sure you wake up the main loop periodically to handle
expose events.

You can wait for the first expose event, then redraw everything, then
assume there will be no more exposes and not stop drawing, but the
assumption is not necessarily correct, there may be more exposes and
then your splash screen will be broken.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]