diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2013-03-31 10:12:18 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:52:42 +0300 |
commit | 7f2e412d3543e689075f9f6e9aff1a651db5fffc (patch) | |
tree | ec4d388058270887016e0c953f6b74b6a2bd11cc /map/information_display.cpp | |
parent | 32ed2c22e325344ef259a8bd0a041e345bd0d4f5 (diff) |
added ability to cache symbols in display lists and refactored InformationDisplay::drawPlacemark
Diffstat (limited to 'map/information_display.cpp')
-rw-r--r-- | map/information_display.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/map/information_display.cpp b/map/information_display.cpp index 5eea2f8f49..4c031296c2 100644 --- a/map/information_display.cpp +++ b/map/information_display.cpp @@ -297,7 +297,8 @@ void InformationDisplay::drawMemoryWarning(Drawer * drawer) void InformationDisplay::drawPlacemark(Drawer * pDrawer, string const & symbol, m2::PointD const & pt) { - pDrawer->drawSymbol(pt, symbol, graphics::EPosAbove, graphics::maxDepth - 4); + pDrawer->screen()->drawDisplayList(m_controller->GetDisplayListCache()->FindSymbol(symbol.c_str()).get(), + math::Shift(math::Identity<double, 3>(), pt)); } /* |