diff --git a/contrib/mobile/drawContext.cpp b/contrib/mobile/drawContext.cpp index 56ecfe9352cad7bfd0c0dec6de4b22acc962e74e..87eb6d0622d827301aed861b53f12fe82e94b46c 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);