1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-21 10:10:49 +01:00

Compare commits

..

No commits in common. "2f07c51d17adee00d55392a29720ab4822e2b908" and "e04abd0ed121240efc7316b4750088b72ff8edbf" have entirely different histories.

2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#include "common/util.h"
#include "objects.h"
#include "attributes.h"
#include "style.h"
#include "mapdata.h"
using namespace ENC;

View File

@ -170,7 +170,8 @@ void MapsforgeMap::cancelJobs(bool wait)
void MapsforgeMap::draw(QPainter *painter, const QRectF &rect, Flags flags)
{
int tileSize = _data.tileSize();
int tileSize = (_data.tileSize() < 384)
? _data.tileSize() << 1 : _data.tileSize();
QPointF tl(floor(rect.left() / tileSize) * tileSize,
floor(rect.top() / tileSize) * tileSize);
QSizeF s(rect.right() - tl.x(), rect.bottom() - tl.y());