removed GetRectForLevelFix

This commit is contained in:
rachytski 2012-03-29 19:40:36 +04:00 committed by Alex Zolotarev
parent 3f6e9d5d5b
commit a07f4f3cde
2 changed files with 1 additions and 6 deletions

View file

@ -86,7 +86,7 @@ public:
scale = min(scale, GetScaleForType(types[i]));
CorrectScaleForVisibility(types, scale);
return scales::GetRectForLevelFix(scale, limitRect.Center());
return scales::GetRectForLevel(scale, limitRect.Center(), 1.0);
}
uint8_t GetSearchRank(TypesHolder const & types, m2::PointD const & pt, uint32_t population) const

View file

@ -20,11 +20,6 @@ namespace scales
/// @return such rect, that GetScaleLevel(rect) == level
m2::RectD GetRectForLevel(double level, m2::PointD const & center, double X2YRatio);
inline m2::RectD GetRectForLevelFix(double level, m2::PointD const & center)
{
/// @todo 0.15 - is dummy constant to fix bug in iPad viewport.
return GetRectForLevel(level - 0.15, center, 1.0);
}
double GetEpsilonForLevel(int level);
double GetEpsilonForSimplify(int level);