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

Jason Harris kstars at 30doradus.org
Tue Jun 3 03:02:21 CEST 2008


SVN commit 816002 by harris:

Replacing empty StarsComponent::update() function.  This needs to be
there, because we do just-in-time updating of stars in the draw loop, so
the normal update function is redundant.

Added a comment so it's clearer that we actually want an empty function
here.

Thanks for noticing this James.

CCMAIL: kstars-devel at kde.org



 M  +8 -0      starcomponent.cpp  
 M  +4 -0      starcomponent.h  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/starcomponent.cpp #816001:816002
@@ -92,6 +92,14 @@
     StarObject::initImages();
 }
 
+//This function is empty for a reason; we override the normal 
+//update function in favor of JiT updates for stars.
+void StarComponent::update( KStarsData *data, KSNumbers *num )   
+{   
+    Q_UNUSED(data)   
+    Q_UNUSED(num)   
+}   
+
 // We use the update hook to re-index all the stars when the date has changed by
 // more than 150 years.
 
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/starcomponent.h #816001:816002
@@ -52,6 +52,10 @@
 
     virtual ~StarComponent();
 
+    //This function is empty; we need that so that the JiT update 
+    //is the only one beiong used.
+    void update( KStarsData *data, KSNumbers *num );
+
     bool selected();
 
     void reindex( KSNumbers *num );


More information about the Kstars-devel mailing list