diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2016-09-05 13:17:07 +0300 |
---|---|---|
committer | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2016-09-26 17:26:00 +0300 |
commit | 24834ce40c571ef6021991350bc0863279f71497 (patch) | |
tree | 96d0d4c8f9b8f36aa50f76442eef29a2cae4813c /drape_frontend/drape_engine.cpp | |
parent | 12be223279b3e84da9d58e0143793f854d5761e3 (diff) |
Positioning in visible viewport.
Diffstat (limited to 'drape_frontend/drape_engine.cpp')
-rw-r--r-- | drape_frontend/drape_engine.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drape_frontend/drape_engine.cpp b/drape_frontend/drape_engine.cpp index 42b4b554a2..402a9d732a 100644 --- a/drape_frontend/drape_engine.cpp +++ b/drape_frontend/drape_engine.cpp @@ -111,6 +111,13 @@ void DrapeEngine::Resize(int w, int h) ResizeImpl(w, h); } +void DrapeEngine::SetVisibleViewport(m2::RectD const & rect) const +{ + m_threadCommutator->PostMessage(ThreadsCommutator::RenderThread, + make_unique_dp<SetVisibleViewportMessage>(rect), + MessagePriority::Normal); +} + void DrapeEngine::Invalidate() { m_threadCommutator->PostMessage(ThreadsCommutator::RenderThread, |