diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-29 17:16:06 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-29 17:16:06 -0800 |
commit | 2920020fb87b7bc497a898544d51cfa390b520dd (patch) | |
tree | 312795a69ef6a854b1d780128d52b8a8db104ef7 | |
parent | b41a73e1c1dfea982df4a0326d45a48babc22dd4 (diff) | |
download | qtlocation-mapboxgl-2920020fb87b7bc497a898544d51cfa390b520dd.tar.gz |
[core] Change TileData pixelRatio to an integer
-rw-r--r-- | include/mbgl/storage/resource.hpp | 2 | ||||
-rw-r--r-- | src/mbgl/storage/resource.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/storage/resource.hpp b/include/mbgl/storage/resource.hpp index d684e16d1b..c97384e6a7 100644 --- a/include/mbgl/storage/resource.hpp +++ b/include/mbgl/storage/resource.hpp @@ -22,7 +22,7 @@ public: struct TileData { std::string urlTemplate; - float pixelRatio; + uint8_t pixelRatio; int32_t x; int32_t y; int8_t z; diff --git a/src/mbgl/storage/resource.cpp b/src/mbgl/storage/resource.cpp index 9cdedb59eb..6f727a6027 100644 --- a/src/mbgl/storage/resource.cpp +++ b/src/mbgl/storage/resource.cpp @@ -71,7 +71,7 @@ Resource Resource::tile(const std::string& urlTemplate, float pixelRatio, int32_ }), Resource::TileData { urlTemplate, - pixelRatio, + uint8_t(pixelRatio > 1.0 ? 2 : 1), x, y, z |