[core] Change TileData pixelRatio to an integer
This commit is contained in:
@@ -22,7 +22,7 @@ public:
|
||||
|
||||
struct TileData {
|
||||
std::string urlTemplate;
|
||||
float pixelRatio;
|
||||
uint8_t pixelRatio;
|
||||
int32_t x;
|
||||
int32_t y;
|
||||
int8_t z;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user