[Kstars-devel] KDE/kdeedu/kstars/kstars

Henry de Valence hdevalence at gmail.com
Fri Jun 11 20:42:56 CEST 2010


SVN commit 1137133 by hdevalence:

Improve KStars drawing speed

Don't convert a pixmap to an image *every* draw event.
KStars doesn't have a mechanism for empirically testing
the drawing speed (yet), but on my machine it feels
like it is about 1.5--2 times faster.

CCMAIL:kstars-devel at kde.org


 M  +1 -1      skymapevents.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skymapevents.cpp #1137132:1137133
@@ -664,7 +664,7 @@
         drawOverlays( sky2 );
         QPainter p;
         p.begin( this );
-        p.drawImage( 0, 0, sky2->toImage() );
+        p.drawPixmap( 0, 0, *sky2 );
         p.end();
         return ; // exit because the pixmap is repainted and that's all what we want
     }


More information about the Kstars-devel mailing list