diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2019-05-17 17:13:52 +0300 |
---|---|---|
committer | Zoia <niakris90@gmail.com> | 2019-05-23 14:04:38 +0300 |
commit | d9df94db3f75cfe2615ce859add7a06d93c98de9 (patch) | |
tree | 57d1ccf0f9adc2b90ecd46418fe49d77cd326cd6 /map | |
parent | e4db767a029d1deabcf3fc09788efe869927f02d (diff) |
[drape] Update visual scale
Diffstat (limited to 'map')
-rw-r--r-- | map/framework.cpp | 6 | ||||
-rw-r--r-- | map/framework.hpp | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index 7dd8031da8..636049e699 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -2022,6 +2022,12 @@ void Framework::OnDestroySurface() m_trafficManager.OnDestroySurface(); } +void Framework::UpdateVisualScale(double vs) +{ + if (m_drapeEngine != nullptr) + m_drapeEngine->UpdateVisualScale(vs, m_isRenderingEnabled); +} + ref_ptr<df::DrapeEngine> Framework::GetDrapeEngine() { return make_ref(m_drapeEngine); diff --git a/map/framework.hpp b/map/framework.hpp index ac210b9c32..f59e4e5eb4 100644 --- a/map/framework.hpp +++ b/map/framework.hpp @@ -524,6 +524,8 @@ public: void OnRecoverSurface(int width, int height, bool recreateContextDependentResources); void OnDestroySurface(); + void UpdateVisualScale(double vs); + private: /// Depends on initialized Drape engine. void SaveViewport(); |