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:
authorMaxim Pimenov <m@maps.me>2018-11-20 15:03:25 +0300
committerTatiana Yan <tatiana.kondakova@gmail.com>2018-11-23 16:59:58 +0300
commitd75839e65c4a63ed0e4a7b192d584e8b83efb435 (patch)
treee047a2d0d4d55371fdb67c5cbef6ebd10f7506a4 /drape_frontend/user_mark_shapes.cpp
parent3467f9aad381da685c13746e92c145d917e99439 (diff)
[coding] Moved functions that encode points to one common file.
Diffstat (limited to 'drape_frontend/user_mark_shapes.cpp')
-rw-r--r--drape_frontend/user_mark_shapes.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/drape_frontend/user_mark_shapes.cpp b/drape_frontend/user_mark_shapes.cpp
index 8f2b29e4a1..8340553094 100644
--- a/drape_frontend/user_mark_shapes.cpp
+++ b/drape_frontend/user_mark_shapes.cpp
@@ -534,8 +534,7 @@ void CacheUserLines(ref_ptr<dp::GraphicsContext> context, TileKey const & tileKe
m2::RectD const tileRect = tileKey.GetGlobalRect();
- double const range = MercatorBounds::maxX - MercatorBounds::minX;
- double const maxLength = range / (1 << (tileKey.m_zoomLevel - 1));
+ double const maxLength = MercatorBounds::kRangeX / (1 << (tileKey.m_zoomLevel - 1));
bool intersected = false;
ProcessSplineSegmentRects(renderInfo.m_spline, maxLength,