[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:00
Message-ID: 20100628171800.1582EAC8E4 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1143780 by khudyakov:
Move flags declaration maximally inward
M +3 -3 linelistindex.cpp
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/linelistindex.cpp #1143779:1143780
@@ -219,8 +219,6 @@
DrawID drawID = skyMesh()->drawID();
UpdateID updateID = KStarsData::Instance()->updateID();
- bool isVisible, isVisibleLast;
-
MeshIterator region( skyMesh(), drawBuffer() );
while ( region.hasNext() ) {
@@ -238,6 +236,7 @@
if ( lineList->updateID != updateID )
JITupdate( lineList );
+ bool isVisibleLast;
SkyList* points = lineList->points();
SkyPoint* pLast = points->first();
QPointF oLast = map->toScreen( pLast, true, &isVisibleLast );
@@ -245,8 +244,9 @@
QPointF oThis, oThis2;
for ( int j = 1 ; j < points->size() ; j++ ) {
SkyPoint* pThis = points->at( j );
+
+ bool isVisible;
oThis2 = oThis = map->toScreen( pThis, true, &isVisible );
-
if ( map->onScreen( oThis, oLast) && ! skipAt( lineList, j ) ) {
if ( isVisible && isVisibleLast && map->onscreenLine( oLast, oThis ) ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic