diff options
-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 |