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

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars/skycomponents
From:       Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date:       2010-06-28 17:18:06
Message-ID: 20100628171806.94717AC8E8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1143782 by khudyakov:

Remove manual clipping. It doesn't affect perfomance either. Qt does
clipping too.

 M  +3 -9      linelistindex.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/linelistindex.cpp #1143781:1143782
@@ -249,17 +249,11 @@
                 oThis2 = oThis = map->toScreen( pThis, true, &isVisible );
                 if ( map->onScreen( oThis, oLast) && ! skipAt( lineList, j ) ) {
 
-                    if ( isVisible && isVisibleLast ) {
-                        psky.drawLine( oLast, oThis );
+                    if( isVisible && isVisibleLast )
                         updateLabelCandidates( oThis, lineList, j );
-                    } else if ( isVisibleLast ) {
-                        QPointF oMid = map->clipLine( pLast, pThis );
-                        psky.drawLine( oLast, oMid );
-                    } else if ( isVisible ) {
-                        QPointF oMid = map->clipLine( pThis, pLast );
-                        psky.drawLine( oMid, oThis );
+                    if( isVisible || isVisibleLast )
+                        psky.drawLine( oLast, oThis );
                     }
-                }
 
                 pLast = pThis;
                 oLast = oThis2;
[prev in list] [next in list] [prev in thread] [next in thread] 

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