mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Properly align the zoom 0 level with tiles of a different size than 256
This commit is contained in:
parent
d3558198ca
commit
c365de130b
@ -124,7 +124,8 @@ void OnlineMap::draw(QPainter *painter, const QRectF &rect, Flags flags)
|
||||
Tile &t = tiles[i];
|
||||
QPointF tp = _zoom ? QPointF(tl.x() + (t.xy().x() - tile.x())
|
||||
* tileSize(), tl.y() + ((_invertY ? (1<<_zoom) - t.xy().y() - 1 :
|
||||
t.xy().y()) - tile.y()) * tileSize()) : QPointF(-128, -128);
|
||||
t.xy().y()) - tile.y()) * tileSize())
|
||||
: QPointF(-_tileSize/2, -_tileSize/2);
|
||||
|
||||
if (!t.pixmap().isNull()) {
|
||||
#ifdef ENABLE_HIDPI
|
||||
|
Loading…
Reference in New Issue
Block a user