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

Akarsh Simha akarshsimha at gmail.com
Tue Jul 15 04:11:53 CEST 2008


SVN commit 832597 by asimha:

onVisibleHemisphere was not set correctly for projections other than
Equirectangular in SkyMap::toScreen(). This commit fixes that.

Hopefully, this fixes the irresponsiveness caused when the coordinate
grid is enabled at high zoom.

CCMAIL: kstars-devel at kde.org



 M  +7 -0      skymap.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #832596:832597
@@ -1041,6 +1041,13 @@
     p.setX( 0.5*Width  - zoomscale*k*cosY*sindX );
     p.setY( 0.5*Height - zoomscale*k*( cosY0*sinY - sinY0*cosY*cosdX ) );
 
+    if ( onVisibleHemisphere != NULL ) {
+        if ( scaledRect().contains( p.toPoint() ) )  //FIXME -jbb
+            *onVisibleHemisphere = true;
+        else
+            *onVisibleHemisphere = false;
+    }
+    
     return p;
 }
 


More information about the Kstars-devel mailing list