mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-20 09:40:49 +01:00
Compare commits
2 Commits
e04abd0ed1
...
2f07c51d17
Author | SHA1 | Date | |
---|---|---|---|
2f07c51d17 | |||
83c2a309fb |
@ -1,7 +1,5 @@
|
|||||||
#include "common/util.h"
|
|
||||||
#include "objects.h"
|
#include "objects.h"
|
||||||
#include "attributes.h"
|
#include "attributes.h"
|
||||||
#include "style.h"
|
|
||||||
#include "mapdata.h"
|
#include "mapdata.h"
|
||||||
|
|
||||||
using namespace ENC;
|
using namespace ENC;
|
||||||
|
@ -170,8 +170,7 @@ void MapsforgeMap::cancelJobs(bool wait)
|
|||||||
|
|
||||||
void MapsforgeMap::draw(QPainter *painter, const QRectF &rect, Flags flags)
|
void MapsforgeMap::draw(QPainter *painter, const QRectF &rect, Flags flags)
|
||||||
{
|
{
|
||||||
int tileSize = (_data.tileSize() < 384)
|
int tileSize = _data.tileSize();
|
||||||
? _data.tileSize() << 1 : _data.tileSize();
|
|
||||||
QPointF tl(floor(rect.left() / tileSize) * tileSize,
|
QPointF tl(floor(rect.left() / tileSize) * tileSize,
|
||||||
floor(rect.top() / tileSize) * tileSize);
|
floor(rect.top() / tileSize) * tileSize);
|
||||||
QSizeF s(rect.right() - tl.x(), rect.bottom() - tl.y());
|
QSizeF s(rect.right() - tl.x(), rect.bottom() - tl.y());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user