Commit 6af02c81 authored by Torsten Rahn's avatar Torsten Rahn Committed by Torsten Rahn

This should fix the white/black lines that can occasionally be seen

on some devices when displaying OSM maps in the Mercator
projection.
parent 5cf66025
......@@ -156,7 +156,7 @@ void TileScalingTextureMapper::mapTexture( GeoPainter *painter, const ViewportPa
const TileId stackedId = TileId( 0, tileZoomLevel, ( ( tileX % numTilesX ) + numTilesX ) % numTilesX, tileY );
const StackedTile *const tile = m_tileLoader->loadTile( stackedId ); // load tile here for every frame, otherwise cleanupTilehash() clears all visible tiles
const QSize size = QSize( qRound( rect.right() - rect.left() ), qRound( rect.bottom() - rect.top() ) );
const QSize size = QSize( qCeil( rect.right() - rect.left() ), qCeil( rect.bottom() - rect.top() ) );
const int cacheHash = 2 * ( size.width() % 2 ) + ( size.height() % 2 );
const TileId cacheId = TileId( cacheHash, stackedId.zoomLevel(), stackedId.x(), stackedId.y() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment