diff --git a/gpxsee.qrc b/gpxsee.qrc index 7bc24c23..7c044188 100644 --- a/gpxsee.qrc +++ b/gpxsee.qrc @@ -6,10 +6,8 @@ - icons/map/arrow.png - icons/map/arrow@2x.png - icons/map/water-arrow.png - icons/map/water-arrow@2x.png + icons/map/arrow.svg + icons/map/water-arrow.svg diff --git a/icons/map/arrow.png b/icons/map/arrow.png deleted file mode 100644 index b0e607f7..00000000 Binary files a/icons/map/arrow.png and /dev/null differ diff --git a/icons/map/arrow.svg b/icons/map/arrow.svg new file mode 100644 index 00000000..bd07eabb --- /dev/null +++ b/icons/map/arrow.svg @@ -0,0 +1,12 @@ + + + + + + + diff --git a/icons/map/arrow@2x.png b/icons/map/arrow@2x.png deleted file mode 100644 index 3dffad2c..00000000 Binary files a/icons/map/arrow@2x.png and /dev/null differ diff --git a/icons/map/water-arrow.png b/icons/map/water-arrow.png deleted file mode 100644 index 50d1f8b3..00000000 Binary files a/icons/map/water-arrow.png and /dev/null differ diff --git a/icons/map/water-arrow.svg b/icons/map/water-arrow.svg new file mode 100644 index 00000000..3002ce48 --- /dev/null +++ b/icons/map/water-arrow.svg @@ -0,0 +1,12 @@ + + + + + + + diff --git a/icons/map/water-arrow@2x.png b/icons/map/water-arrow@2x.png deleted file mode 100644 index a57bb6ad..00000000 Binary files a/icons/map/water-arrow@2x.png and /dev/null differ diff --git a/src/map/IMG/rastertile.cpp b/src/map/IMG/rastertile.cpp index e62a30c5..931f50fd 100644 --- a/src/map/IMG/rastertile.cpp +++ b/src/map/IMG/rastertile.cpp @@ -1,6 +1,7 @@ #include #include #include +#include "common/util.h" #include "map/dem.h" #include "map/textpathitem.h" #include "map/textpointitem.h" @@ -21,11 +22,6 @@ using namespace IMG; #define AREA(rect) \ (rect.size().width() * rect.size().height()) -#define HIDPI_IMG(dir, basename, ratio) \ - (((ratio) > 1.0) \ - ? QImage(dir "/" basename "@2x.png") \ - : QImage(dir "/" basename ".png")) - #define ROAD 0 #define WATER 1 @@ -517,8 +513,8 @@ void RasterTile::render() QList textItems; QImage arrows[2]; - arrows[ROAD] = HIDPI_IMG(":/map", "arrow", _ratio); - arrows[WATER] = HIDPI_IMG(":/map", "water-arrow", _ratio); + arrows[ROAD] = Util::svg2img(":/map/arrow.svg", _ratio); + arrows[WATER] = Util::svg2img(":/map/water-arrow.svg", _ratio); fetchData(polygons, lines, points); ll2xy(polygons);