diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-12-09 01:17:23 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:47:50 +0300 |
commit | 67907b5423e2c88b70579b7b06f361610ade7c3b (patch) | |
tree | 9007c16e6aff78af2814ef1c8d901b9b6d27b103 /map/ruler.cpp | |
parent | c92a5801305a2a2f9e3d3132c28e190133c4eddf (diff) |
refactored ResourceStyle and lot of *Info classes into consistent Resource and Resource::Info system.
Diffstat (limited to 'map/ruler.cpp')
-rw-r--r-- | map/ruler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/map/ruler.cpp b/map/ruler.cpp index be0a1290f1..5c4fd891b9 100644 --- a/map/ruler.cpp +++ b/map/ruler.cpp @@ -5,6 +5,7 @@ #include "../graphics/overlay_renderer.hpp" #include "../graphics/skin.hpp" +#include "../graphics/pen.hpp" #include "../indexer/mercator.hpp" #include "../geometry/distance_on_sphere.hpp" @@ -274,7 +275,7 @@ void Ruler::draw(graphics::OverlayRenderer * s, math::Matrix<double, 3, 3> const { s->drawPath( &m_path[0], m_path.size(), 0, - s->skin()->mapPenInfo(graphics::PenInfo(graphics::Color(0, 0, 0, 0x99), 4 * m_visualScale, 0, 0, 0)), + s->skin()->map(graphics::Pen::Info(graphics::Color(0, 0, 0, 0x99), 4 * m_visualScale, 0, 0, 0)), depth()); if (position() & graphics::EPosLeft) |