From 2920020fb87b7bc497a898544d51cfa390b520dd Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 29 Jan 2016 17:16:06 -0800 Subject: [PATCH] [core] Change TileData pixelRatio to an integer --- include/mbgl/storage/resource.hpp | 2 +- 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 d684e16d1..c97384e6a 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 9cdedb59e..6f727a602 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