[core] Change TileData pixelRatio to an integer

This commit is contained in:
John Firebaugh
2016-01-29 17:16:06 -08:00
parent b41a73e1c1
commit 2920020fb8
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ public:
struct TileData {
std::string urlTemplate;
float pixelRatio;
uint8_t pixelRatio;
int32_t x;
int32_t y;
int8_t z;

View File

@@ -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