forked from organicmaps/organicmaps
[android] calculating the minimum amount of textures needed for the specified screen size.
This commit is contained in:
parent
09035aaa9e
commit
07a2aceb0f
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ public:
|
|||
/// pure magic ;)
|
||||
|
||||
double rotatedScreenCircleDiameter = sqrt(screenWidth * screenWidth + screenHeight * screenHeight);
|
||||
int tilesOnOneSide = ceil(rotatedScreenCircleDiameter / m_tileSize);
|
||||
int tilesOnOneSide = ceil(rotatedScreenCircleDiameter / (m_tileSize / 1.05 / 2));
|
||||
int singleScreenTilesCount = tilesOnOneSide * tilesOnOneSide;
|
||||
m_maxTilesCount = singleScreenTilesCount * 2;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue