From e62d9d3e718b64483990054509bb115b5f9d32b5 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 13 Jun 2014 07:54:06 +0000 Subject: [PATCH] --- contrib/mobile/drawContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/mobile/drawContext.cpp b/contrib/mobile/drawContext.cpp index 56ecfe9352..87eb6d0622 100644 --- a/contrib/mobile/drawContext.cpp +++ b/contrib/mobile/drawContext.cpp @@ -389,7 +389,7 @@ void drawContext::drawScale() PViewData *data = p->getData(); double box = width / (opt->nbIso ? opt->nbIso : 1); - double xmin = _left + (_right - _left -width)/2.; + double xmin = _left + (_right - _left - width)/2.; double ymin = _bottom + 0.6 * height + height * nPview; std::vector<GLfloat> vertex(opt->nbIso*3*4); @@ -499,7 +499,7 @@ void drawContext::drawScale() sprintf(label, "%s", data->getName().c_str()); } drawString lbl(label, 20 * _fontFactor); - lbl.draw(xmin + width / 2, ymin + 2.75 * dh, 0., + lbl.draw(xmin + width / 2, ymin + 2.8 * dh, 0., _width/(_right-_left), _height/(_top-_bottom)); drawString val(data->getName().c_str(), 15 * _fontFactor); -- GitLab