diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-11-18 10:51:30 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:32:48 +0300 |
commit | c7e4429a42b5592603b4ea6c03f7373e23ad5fdf (patch) | |
tree | c7de50295f575d22dce80bf4d3a20d8d8699c6ae /map/user_mark_container.cpp | |
parent | 764ec6d83b08bd8103ae9f688f00c0469a40606b (diff) |
[core] condition compilation. We can use old renderer or drape based on define USE_DRAPE
Diffstat (limited to 'map/user_mark_container.cpp')
-rw-r--r-- | map/user_mark_container.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/map/user_mark_container.cpp b/map/user_mark_container.cpp index a08cbe8e8a..6ed109aba5 100644 --- a/map/user_mark_container.cpp +++ b/map/user_mark_container.cpp @@ -80,6 +80,7 @@ namespace graphics::DisplayList * dl, m2::PointD const & ptOrg) { +#ifndef USE_DRAPE ScreenBase const & modelView = event.GetModelView(); graphics::Screen * screen = event.GetDrawer()->screen(); m2::PointD pxPoint = modelView.GtoP(ptOrg); @@ -88,6 +89,7 @@ namespace scale, scale), pxPoint.x, pxPoint.y); dl->draw(screen, m); +#endif // USE_DRAPE } void DrawUserMarkImpl(double scale, @@ -152,12 +154,14 @@ UserMark const * UserMarkContainer::FindMarkInRect(m2::AnyRectD const & rect, do void UserMarkContainer::Draw(PaintOverlayEvent const & e, UserMarkDLCache * cache) const { +#ifndef USE_DRAPE if (IsVisible() && IsDrawable()) { UserMarkDLCache::Key defaultKey(GetTypeName(), graphics::EPosCenter, m_layerDepth); ForEachInRect(e.GetClipRect(), bind(&DrawUserMark, 1.0, m_framework.GetVisualScale(), e, cache, defaultKey, _1)); } +#endif // USE_DRAPE } void UserMarkContainer::Clear(size_t skipCount/* = 0*/) |