On Thu, 2009-10-22 at 17:38 +0200, ext Aniello Del Sorbo wrote:
> 2009/10/22 Andrew Flegg <and...@bleb.org>:
> > On Thu, Oct 22, 2009 at 16:06, Aniello Del Sorbo <ani...@gmail.com> wrote:
> >>
> > [snip]
> >> Thus I thought I'll take the screenshot at the expose event and only
> >> take it if the file is not there already.
> >
> > I *think* you need to do it at every expose event. What if the user
> > changes theme and the font colours change (for example)?
> >
> > Cheers,
> >
> > Andrew
> >
> > --
> > Andrew Flegg -- mailto:and...@bleb.org  |  http://www.bleb.org/
> >
> 
> True.
> But taking a snapshot slows down the startup... it should be then done
> in a small thread?

Please, no threads, no!  The screenshot is only taken if it does not
exist, otherwise the existing screenshot is used.  So, the performance
penalty is not there every time, only when the old screenshot does not
exist.

The idea of the screenshot is to fool the user to think that the
application starts really quickly and shows an empty window and then
appears to complete its window drawing (when the real window is shown
and drawn).  So, the screenshot should look like the application window
before the content is drawn into it to keep this illusion.

-Kimmo


_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to