[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars/skycomponents
From: Jason Harris <kstars () 30doradus ! org>
Date: 2008-06-03 1:02:21
Message-ID: 1212454941.244339.25187.nullmailer () svn ! kde ! org
[Download RAW message or body]
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@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 );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic