1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Downscale HiDPI images rather than upscale the standard versions

This commit is contained in:
Martin Tůma 2024-02-11 16:47:32 +01:00
parent 3b3f06cec8
commit 7bcd5f63bc

View File

@ -446,9 +446,9 @@ void RasterTile::render()
QList<TextItem*> textItems;
QImage arrows[2];
arrows[ROAD] = (_ratio >= 2)
arrows[ROAD] = (_ratio > 1.0)
? QImage(":/map/arrow@2x.png") : QImage(":/map/arrow.png");
arrows[WATER] = (_ratio >= 2)
arrows[WATER] = (_ratio > 1.0)
? QImage(":/map/water-arrow@2x.png") : QImage(":/map/water-arrow.png");
fetchData(polygons, lines, points);