[Kde-games-devel] SVG and MainWindow resize handling
Burkhard Lehner
burkhard.lehner at googlemail.com
Sat Jan 19 20:00:00 CET 2008
2008/1/19, Dmitry Suzdalev <dimsuzkde at gmail.com>:
>
> On Saturday 19 January 2008 19:40:12 Burkhard Lehner wrote:
> > You could check for every paint event if the window size has changed
> until
> > the last paint event, and render the SVG graphics only if needed.
> Here's where I'll catch you :)
> How would you determine which paint event is *last* in series of paint
> events?
> :)
>
> If you have some way to determine that - it would solve all these
> problems.
What about scanning through the event queue, if there is still a pending
resize event? If so, better don't paint anything, and don't render any SVG,
because it will be void for sure a few milliseconds later.
Maybe I again miss something.
Cheers,
Burkhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-games-devel/attachments/20080119/6147d099/attachment.html
More information about the kde-games-devel
mailing list