Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] Change TileData pixelRatio to an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Jan 30, 2016
1 parent b41a73e commit 2920020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/mbgl/storage/resource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Resource {

struct TileData {
std::string urlTemplate;
float pixelRatio;
uint8_t pixelRatio;
int32_t x;
int32_t y;
int8_t z;
Expand Down
2 changes: 1 addition & 1 deletion src/mbgl/storage/resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2920020

Please sign in to comment.