From 7bcd5f63bc161b14d91c0beb4cef7d212cd33516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 11 Feb 2024 16:47:32 +0100 Subject: [PATCH] Downscale HiDPI images rather than upscale the standard versions --- src/map/IMG/rastertile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/IMG/rastertile.cpp b/src/map/IMG/rastertile.cpp index 0ca9efcc..142aba69 100644 --- a/src/map/IMG/rastertile.cpp +++ b/src/map/IMG/rastertile.cpp @@ -446,9 +446,9 @@ void RasterTile::render() QList 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);