[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars/skycomponents
From:       Akarsh Simha <akarshsimha () gmail ! com>
Date:       2010-05-18 18:25:42
Message-ID: 20100518182542.5944FAC8B9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1128228 by asimha:

Changes in the drawing of deep-sky object labels:

+ Labels are drawn only if the corresponding objects are drawn.

+ The label magnitude limit slider actually works (but needs more
  tweaking)

+ This also seems to have fixed the problem of multiple copies of
  labels being drawn immediately after slewing.

CCMAIL: kstars-devel@kde.org



 M  +4 -3      deepskycomponent.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/deepskycomponent.cpp \
#1128227:1128228 @@ -329,7 +329,7 @@
     QColor color        = data->colorScheme()->colorNamed( colorString );
     QColor colorExtra = data->colorScheme()->colorNamed( "HSTColor" );
 
-    m_hideLabels =  ( map->isSlewing() && Options::hideLabels() ) ||
+    m_hideLabels =  ( map->isSlewing() && Options::hideOnSlew() ) ||
                     ! ( Options::showDeepSkyMagnitudes() || \
Options::showDeepSkyNames() );  
 
@@ -387,8 +387,9 @@
                 double PositionAngle = map->findPA( obj, o.x(), o.y() );
 
                 //Draw Image
+                bool imgdrawn = false;
                 if ( drawImage && Options::zoomFactor() > 5.*MINZOOM ) {
-                    obj->drawImage( psky, o.x(), o.y(), PositionAngle, \
Options::zoomFactor() ); +                    imgdrawn = obj->drawImage( psky, o.x(), \
o.y(), PositionAngle, Options::zoomFactor() );  }
 
                 //Draw Symbol
@@ -412,7 +413,7 @@
                     }
                 }
 
-                if ( !( drawObject || drawImage )  && ( m_hideLabels || mag > \
labelMagLim ) ) continue; +                if ( !( drawObject || imgdrawn )  || ( \
m_hideLabels || mag > labelMagLim ) ) continue;  
                 addLabel( o, obj );
             }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic