Hi Robert,

Just a note, I introduced a change here that seems to give wrong results. The original calculation for the width of the bar graph's background was:

    70 * characterSize + 2 * backgroundMargin

This gave a result too wide (the background will not have a margin on the right, indicating it goes off to the right outside the screen).

What I tried was:

    _camera->getViewport()->width() - 2 * backgroundMargin;

which seems to be right most of the time but is too small sometimes... I need to do a bit more testing to see why.

Anyways, this is minor, but I'll see if I can update the submission to fix it.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [EMAIL PROTECTED]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to