Fixed the background quad size to fit all the camera stats labels

This commit is contained in:
Robert Osfield 2010-04-20 11:05:22 +00:00
parent 7c38643a77
commit eef7da35d1

View File

@ -1398,7 +1398,7 @@ void StatsHandler::setUpScene(osgViewer::ViewerBase* viewer)
group->addChild(geode);
geode->addDrawable(createBackgroundRectangle(pos + osg::Vec3(-backgroundMargin, characterSize + backgroundMargin, 0),
7 * characterSize + 2 * backgroundMargin,
19 * characterSize + 2 * backgroundMargin,
20 * characterSize + 2 * backgroundMargin,
backgroundColor));
// Camera scene & primitive stats static text
@ -1445,7 +1445,7 @@ void StatsHandler::setUpScene(osgViewer::ViewerBase* viewer)
{
geode->addDrawable(createBackgroundRectangle(pos + osg::Vec3(-backgroundMargin, characterSize + backgroundMargin, 0),
5 * characterSize + 2 * backgroundMargin,
19 * characterSize + 2 * backgroundMargin,
20 * characterSize + 2 * backgroundMargin,
backgroundColor));
// Camera scene stats