[Marble-commits] KDE/kdeedu/marble/src/lib
Bernhard Beschow
bbeschow at cs.tu-berlin.de
Fri Jan 21 00:11:06 CET 2011
SVN commit 1216047 by beschow:
take number of base tiles (columns) into account when calculating the tile level
M +1 -1 AbstractScanlineTextureMapper.cpp
--- trunk/KDE/kdeedu/marble/src/lib/AbstractScanlineTextureMapper.cpp #1216046:1216047
@@ -59,7 +59,7 @@
// the tile level from tilesize and the globe radius via log(2)
qreal linearLevel = ( 4.0 * (qreal)( radius )
- / (qreal)( m_tileSize.width() ) );
+ / (qreal)( m_tileSize.width() * m_tileLoader->tileColumnCount( 0 ) ) );
int tileLevel = 0;
if ( linearLevel < 1.0 )
More information about the Marble-commits
mailing list