From 2f07c51d17adee00d55392a29720ab4822e2b908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 7 Mar 2024 09:30:24 +0100 Subject: [PATCH] Use the original data tile size for rendering to prevent grid artifacts --- src/map/mapsforgemap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/map/mapsforgemap.cpp b/src/map/mapsforgemap.cpp index dc69fd1c..67c5e6c4 100644 --- a/src/map/mapsforgemap.cpp +++ b/src/map/mapsforgemap.cpp @@ -170,8 +170,7 @@ void MapsforgeMap::cancelJobs(bool wait) void MapsforgeMap::draw(QPainter *painter, const QRectF &rect, Flags flags) { - int tileSize = (_data.tileSize() < 384) - ? _data.tileSize() << 1 : _data.tileSize(); + int tileSize = _data.tileSize(); QPointF tl(floor(rect.left() / tileSize) * tileSize, floor(rect.top() / tileSize) * tileSize); QSizeF s(rect.right() - tl.x(), rect.bottom() - tl.y());