Skip to content
Snippets Groups Projects
Commit e62d9d3e authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

No commit message

No commit message
parent 84b01ccd
Branches
Tags
No related merge requests found
...@@ -389,7 +389,7 @@ void drawContext::drawScale() ...@@ -389,7 +389,7 @@ void drawContext::drawScale()
PViewData *data = p->getData(); PViewData *data = p->getData();
double box = width / (opt->nbIso ? opt->nbIso : 1); 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; double ymin = _bottom + 0.6 * height + height * nPview;
std::vector<GLfloat> vertex(opt->nbIso*3*4); std::vector<GLfloat> vertex(opt->nbIso*3*4);
...@@ -499,7 +499,7 @@ void drawContext::drawScale() ...@@ -499,7 +499,7 @@ void drawContext::drawScale()
sprintf(label, "%s", data->getName().c_str()); sprintf(label, "%s", data->getName().c_str());
} }
drawString lbl(label, 20 * _fontFactor); 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)); _width/(_right-_left), _height/(_top-_bottom));
drawString val(data->getName().c_str(), 15 * _fontFactor); drawString val(data->getName().c_str(), 15 * _fontFactor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment