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:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2017-07-05 11:53:18 +0300
committerRoman Kuznetsov <r.kuznetsow@gmail.com>2017-07-05 11:55:38 +0300
commite08fa24797df4b188188cc3fe3ec1d23f3a96814 (patch)
tree7c10cde59b768517b3cedc289615e96b43428c04 /drape_frontend
parent9aadfb01e577437bd6dc18dae2e37357707d1841 (diff)
Review fixes.
Diffstat (limited to 'drape_frontend')
-rw-r--r--drape_frontend/user_mark_shapes.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/drape_frontend/user_mark_shapes.cpp b/drape_frontend/user_mark_shapes.cpp
index 64a37be297..a1aaeffb87 100644
--- a/drape_frontend/user_mark_shapes.cpp
+++ b/drape_frontend/user_mark_shapes.cpp
@@ -134,8 +134,8 @@ void CacheUserLines(TileKey const & tileKey, ref_ptr<dp::TextureManager> texture
dp::Batcher & batcher)
{
float const vs = static_cast<float>(df::VisualParams::Instance().GetVisualScale());
- int const kLineSimplifyLevelStart = 15;
- bool const simplify = tileKey.m_zoomLevel <= kLineSimplifyLevelStart;
+ int const kLineSimplifyLevelEnd = 15;
+ bool const simplify = tileKey.m_zoomLevel <= kLineSimplifyLevelEnd;
double sqrScale;
if (simplify)
@@ -153,11 +153,11 @@ void CacheUserLines(TileKey const & tileKey, ref_ptr<dp::TextureManager> texture
{
spline.Reset(new m2::Spline(renderInfo.m_spline->GetSize()));
- static double minSegmentLength = math::sqr(4.0 * vs);
+ static double const kMinSegmentLength = math::sqr(4.0 * vs);
m2::PointD lastAddedPoint;
for (auto const & point : renderInfo.m_spline->GetPath())
{
- if ((spline->GetSize() > 1 && point.SquareLength(lastAddedPoint) * sqrScale < minSegmentLength) ||
+ if ((spline->GetSize() > 1 && point.SquareLength(lastAddedPoint) * sqrScale < kMinSegmentLength) ||
spline->IsPrelonging(point))
{
spline->ReplacePoint(point);