diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-05-21 11:55:40 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:15:43 +0300 |
commit | 8fbe6d31e11c79a82c2bf2eddbeb07f740cae34b (patch) | |
tree | e813880f6151ab36b23c91bec108ea8701e7aade /map/ruler.cpp | |
parent | 813f2f321cc3d4729f61899bf068dc67beea7949 (diff) |
[core] move compass and ruler for new UI
Diffstat (limited to 'map/ruler.cpp')
-rw-r--r-- | map/ruler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/map/ruler.cpp b/map/ruler.cpp index 5419db7f65..6bf7cc77b6 100644 --- a/map/ruler.cpp +++ b/map/ruler.cpp @@ -26,6 +26,7 @@ namespace { + static const float RulerHeight = 2.0; static const int32_t MinPixelWidth = 60; static const int32_t MinMetersWidth = 10; static const int32_t MaxMetersWidth = 1000000; @@ -202,7 +203,7 @@ void Ruler::RulerFrame::Cache(const string & text, graphics::FontDesc const & f) /* 0*/ //m2::PointD(0.0, -5.0 * k), /* 1*/ //m2::PointD(0.0, -5.0 * k), /* 2*/ //m2::PointD(0.0, -3.0 * k), - /* 3*/ m2::PointD(0.0, -3.0 * k), + /* 3*/ m2::PointD(0.0, -RulerHeight * k), /* 4*/ m2::PointD(0.0, 0.0), /* 5*/ //m2::PointD(0.0, 0.0), /* 6*/ //m2::PointD(0.0, -3.0 * k), @@ -213,7 +214,7 @@ void Ruler::RulerFrame::Cache(const string & text, graphics::FontDesc const & f) /*11*/ //m2::PointD(halfLength - 0.5, -7.0 * k), /*12*/ //m2::PointD(halfLength - 0.5, -3.0 * k), /*13*/ //m2::PointD(halfLength - 0.5, 0.0 * k), - /*14*/ m2::PointD(CacheLength, -3.0 * k), + /*14*/ m2::PointD(CacheLength, -RulerHeight * k), /*15*/ m2::PointD(CacheLength, 0.0 * k), /*16*/ //m2::PointD(CacheLength, -3.0 * k), /*17*/ //m2::PointD(CacheLength, -5.0 * k), |