[Kstars-devel] KDE/kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Tue Jul 15 05:47:07 CEST 2008
Excellent! If you confirm that this fix works, can you please
backport it to the 4.1 branch as well? If you don't have the branch
checked out, then I can backport it.
On 7/14/08, Akarsh Simha <akarshsimha at gmail.com> wrote:
> 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;
> }
>
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel
>
More information about the Kstars-devel
mailing list