[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars
From: Jason Harris <kstars () 30doradus ! org>
Date: 2008-05-01 4:52:19
Message-ID: 1209617539.400181.25368.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 802895 by harris:
When slewing to a new location, do not allow the "update" heartbeat to interrupt the
slew and "snap" the focus to the new location.
CCMAIL: kstars-devel@kde.org
M +8 -2 skymap.cpp
--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #802894:802895
@@ -659,6 +659,9 @@
}
void SkyMap::updateFocus() {
+ if ( slewing ) return;
+
+ //Tracking on an object
if ( Options::isTracking() && focusObject() != NULL ) {
if ( Options::useAltAz() ) {
//Tracking any object in Alt/Az mode requires focus updates
@@ -674,6 +677,8 @@
focus()->EquatorialToHorizontal( data->LST, data->geo()->lat() );
setDestination( focus() );
}
+
+ //Tracking on empty sky
} else if ( Options::isTracking() && focusPoint() != NULL ) {
if ( Options::useAltAz() ) {
//Tracking on empty sky in Alt/Az mode
@@ -681,8 +686,9 @@
focus()->EquatorialToHorizontal( data->LST, data->geo()->lat() );
setDestination( focus() );
}
- } else if ( ! slewing ) {
- //Not tracking and not slewing, let sky drift by
+
+ //Not tracking and not slewing, let sky drift by
+ } else {
if ( Options::useAltAz() ) {
focus()->setAlt( destination()->alt()->Degrees() );
focus()->setAz( destination()->az()->Degrees() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic