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

James Bowlin bowlin at mindspring.com
Tue Aug 14 14:12:51 CEST 2007


SVN commit 699953 by jbowlin:

Minor cleanup to SkyMapComposite::draw() to make the delayed re-indexing
more clear.

Removed a local variable from StarComponent::draw() that I no longer use.

CCMAIL: kstars-devel at kde.org


 M  +4 -3      skymapcomposite.cpp  
 M  +0 -1      starcomponent.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/skymapcomposite.cpp #699952:699953
@@ -169,11 +169,14 @@
 {
     m_map = ks->map();
 
+	// We delay one draw cycle before re-indexing
     m_Stars->reindex( &m_reindexNum );
     m_CLines->reindex( &m_reindexNum );
+	// This queues re-indexing for the next draw cycle
+    m_reindexNum = KSNumbers( ks->data()->updateNum()->julianDay() );
 
     // This ensures that the JIT updates are synchronized for the entire draw
-    // cycle so the sky moves as a single sheet.
+    // cycle so the sky moves as a single sheet.  May not be needed.
     ks->data()->syncUpdateIDs();
 
     float radius = m_map->fov();
@@ -280,8 +283,6 @@
 
     //psky.setPen(  QPen( QBrush( QColor( "yellow" ) ), 1, Qt::SolidLine ) );
     //m_skyMesh->draw( ks, psky, scale, OBJ_NEAREST_BUF );
-
-    m_reindexNum = KSNumbers( ks->data()->updateNum()->julianDay() );
 }
 
 //Select nearest object to the given skypoint, but give preference 
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/starcomponent.cpp #699952:699953
@@ -132,7 +132,6 @@
     KStarsData* data = ks->data();
     UpdateID updateID = data->updateID();
 
-    QList<SkyLabel> labelList;
     double labelMagLim = Options::magLimitDrawStarInfo();
 
 	bool checkSlewing = ( map->isSlewing() && Options::hideOnSlew() );


More information about the Kstars-devel mailing list