[android] #5254 - fix ARMv5 support

Backported patches fixing ARMv5 support for issue #3985.
This commit is contained in:
Thiago Marcos P. Santos
2016-06-06 16:18:46 +03:00
parent f4a82bd367
commit b711979e32
19 changed files with 97 additions and 36 deletions

View File

@@ -518,7 +518,7 @@ CameraOptions Map::cameraForLatLngs(const std::vector<LatLng>& latLngs, optional
scaleY -= (padding->top + padding->bottom) / height;
}
double minScale = ::fmin(scaleX, scaleY);
double zoom = ::log2(getScale() * minScale);
double zoom = util::log2(getScale() * minScale);
zoom = util::clamp(zoom, getMinZoom(), getMaxZoom());
// Calculate the center point of a virtual bounds that is extended in all directions by padding.