diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2015-01-23 19:16:35 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-11-30 16:03:59 +0300 |
commit | 66d91af035b665debf3b5d55453b13c4d2efd695 (patch) | |
tree | dc19daa7ed506f29cbb0e56c10e4fbd0f521c225 /map/mwm_url.cpp | |
parent | efb53ac0f91c7ffb2254b5d5a0d363a5a723e32c (diff) |
[drape] build android with drape
Diffstat (limited to 'map/mwm_url.cpp')
-rw-r--r-- | map/mwm_url.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/map/mwm_url.cpp b/map/mwm_url.cpp index 8b2bc68f57..0f3479e2aa 100644 --- a/map/mwm_url.cpp +++ b/map/mwm_url.cpp @@ -1,6 +1,6 @@ -#include "mwm_url.hpp" +#include "map/mwm_url.hpp" -#include "render/scales_processor.hpp" +#include "drape_frontend/visual_params.hpp" #include "indexer/mercator.hpp" #include "indexer/scales.hpp" @@ -174,14 +174,14 @@ void ParsedMapApi::Reset() m_goBackOnBalloonClick = false; } -bool ParsedMapApi::GetViewportRect(ScalesProcessor const & scales, m2::RectD & rect) const +bool ParsedMapApi::GetViewportRect(m2::RectD & rect) const { ASSERT(m_controller != NULL, ()); size_t markCount = m_controller->GetUserMarkCount(); if (markCount == 1 && m_zoomLevel >= 1) { double zoom = min(static_cast<double>(scales::GetUpperComfortScale()), m_zoomLevel); - rect = scales.GetRectForDrawScale(zoom, m_controller->GetUserMark(0)->GetOrg()); + rect = df::GetRectForDrawScale(zoom, m_controller->GetUserMark(0)->GetOrg()); return true; } else |