Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2013-03-31 10:12:18 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:52:42 +0300
commit7f2e412d3543e689075f9f6e9aff1a651db5fffc (patch)
treeec4d388058270887016e0c953f6b74b6a2bd11cc /map/information_display.cpp
parent32ed2c22e325344ef259a8bd0a041e345bd0d4f5 (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.cpp3
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));
}
/*