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>2012-12-09 01:17:23 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:47:50 +0300
commit67907b5423e2c88b70579b7b06f361610ade7c3b (patch)
tree9007c16e6aff78af2814ef1c8d901b9b6d27b103 /map/ruler.cpp
parentc92a5801305a2a2f9e3d3132c28e190133c4eddf (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.cpp3
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)