[Kstars-devel] [patch] improve rendering time for stars by a?factor of 20
James Bowlin
bowlin at mindspring.com
Mon Dec 24 22:37:45 CET 2007
On Mon December 24 2007, Akarsh Simha wrote:
> That apart I notice that the patch brings in some-what "squarishly"
> shaped stars, that look ugly. Can you reproduce that?
I noticed this too. I think this is because the size of the ellipse
is the same as the size of the cached image it is being drawn on.
Either the images need to be larger or the ellipses need to be smaller.
These changes in starobject.cpp seemed to reduce the problem:
- QPixmap BigImage( 10, 10 );
+ QPixmap BigImage( 14, 14 );
QPainter p;
p.begin( &BigImage );
p.setPen( QPen(ColorMap[color], 2) );
p.setBrush( QColor(Qt::white) );
- p.drawEllipse( QRect( 0, 0, 10, 10 ) );
+ p.drawEllipse( QRect( 2, 2, 12, 12 ) );
--
Peace, James
More information about the Kstars-devel
mailing list