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
path: root/gui
diff options
context:
space:
mode:
authorExMix <rahuba.youri@mapswithme.com>2014-03-05 17:37:05 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:12:28 +0300
commit085671af831192739bbf8d98af05f97eaa2de144 (patch)
tree6dc0a75b3a5c1f81ef9aaec1dcff63f201914ba0 /gui
parent3f0c39f347820359cd3b551e84bec3deb4cbbb3c (diff)
new compass with animation
Diffstat (limited to 'gui')
-rw-r--r--gui/display_list_cache.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/gui/display_list_cache.cpp b/gui/display_list_cache.cpp
index 80122db64d..8dd854555b 100644
--- a/gui/display_list_cache.cpp
+++ b/gui/display_list_cache.cpp
@@ -75,9 +75,16 @@ namespace gui
m_CacheScreen->beginFrame();
m_CacheScreen->setDisplayList(dl.get());
+ graphics::EPosition pos = graphics::EPosAbove;
+ if (strcmp(name, "search-result") == 0)
+ {
+ LOG(LINFO, ("Position checked"));
+ pos = graphics::EPosCenter;
+ }
+
/// @todo do not cache depth in display list. use separate vertex shader and uniform constant
/// to specify it while rendering display list.
- m_CacheScreen->drawSymbol(m2::PointD(0, 0), name, graphics::EPosAbove, graphics::poiAndBookmarkDepth);
+ m_CacheScreen->drawSymbol(m2::PointD(0, 0), name, pos, graphics::poiAndBookmarkDepth);
m_CacheScreen->setDisplayList(0);
m_CacheScreen->endFrame();