[Kde-games-devel] SVG and MainWindow resize handling
Albert Astals Cid
aacid at kde.org
Sat Jan 19 18:22:59 CET 2008
A Dissabte 19 Gener 2008, Andreas Pakulat va escriure:
> On 19.01.08 17:40:12, Burkhard Lehner wrote:
> > And just to compare it to Microsoft Windows' behaviour: In Freecell, when
> > changing the window size, first the rescaled pixmap versions of the cards
> > are used, until the rendered vector versions are computed. I don't know
> > if this is already done in kgames, but I think it could easily be
> > implemented.
>
> Well, scaling a pixmap is actually also quite a penalty, because you've
> got two QImage<->QPixmap conversions in between.
>
> Hmm, why exactly are pixmaps used everywhere and not QImage's?
pixmaps are stored in the X server, so painting them is FAST
Albert
> Having
> looked at kpat and lskat code, I saw quite some forward/back conversions
> between those, which could (IIRC) be reduced to exactly one when drawing
> the qimage directly. I suspect I'm missing an important detail and I'm
> not much familiar with drawing images in Qt, so please forgive me if the
> answer is obvious...
>
> Andreas
More information about the kde-games-devel
mailing list