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

Akarsh Simha akarshsimha at gmail.com
Tue Dec 16 06:27:25 CET 2008


SVN commit 897456 by asimha:

Improving code readability.

CCMAIL: kstars-devel at kde.org



 M  +1 -1      skymap.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #897455:897456
@@ -1483,7 +1483,7 @@
 
 float SkyMap::fov() {
     float diagonalPixels = sqrt( (double)(width() * width() + height() * height()) );
-    return 28.6427 * diagonalPixels / Options::zoomFactor();
+    return diagonalPixels / ( 2 * Options::zoomFactor() * dms::DegToRad );
 
     //if ( width() >= height() )
     //	return 28.65*width()/Options::zoomFactor();


More information about the Kstars-devel mailing list