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:
authorExMix <rahuba.youri@mapswithme.com>2014-03-14 17:30:11 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:12:43 +0300
commitfd4b51636f4e3090848be1c6910da9e72e23f974 (patch)
treed9e317c3aabc79454f4ed184e9e189199f7c62ab /map/ruler.cpp
parent7949f35ef544da31913b3f3de31c5cc8a34f8525 (diff)
inflate tex rect for better text view on low dpi.
Diffstat (limited to 'map/ruler.cpp')
-rw-r--r--map/ruler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/map/ruler.cpp b/map/ruler.cpp
index e554bd7eb5..8013f528d8 100644
--- a/map/ruler.cpp
+++ b/map/ruler.cpp
@@ -328,6 +328,7 @@ void Ruler::RulerFrame::Cache(const string & text, graphics::FontDesc const & f)
coords.push_back(m2::PointD(baseX, 0.0));
m2::RectI resourceRect(glyphRes[i]->m_texRect);
+ resourceRect.Inflate(-1, -1);
double w = resourceRect.SizeX();
double h = resourceRect.SizeY();
lengthFromStart += w;