Am 15.06.2009 19:35 Uhr schrieb "Robb Main" unter <[email protected]>:

> I've created a window that loads a PNG image (as a splash screen) in the
> constructor. However, if I call show() immediately after the constructor
> returns, the image is not yet ready to display - it seems there the image is
> still being decompressed / rendered. If I call fl_check() several times, or
> just dropp to Fl::run(), eventually the image renders.
> 
> Is there a way to know when the image is ready to render?

There is no parallel processing when loading the image. It is all ready as
soon as your image loading function returns. There will be a delay if you do
not call Fl::flush(), Fl::wait() or Fl::run() though.

I suggest that you write a short example program which has the problem that
you describe, post it here, and we will see where the problem lies.

Matthias
-- 



_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to