From eef7da35d144b88af20d4501ce23c0d8778dd6ae Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 20 Apr 2010 11:05:22 +0000 Subject: [PATCH] Fixed the background quad size to fit all the camera stats labels --- src/osgViewer/StatsHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgViewer/StatsHandler.cpp b/src/osgViewer/StatsHandler.cpp index e74ea67a1..ba778aec9 100644 --- a/src/osgViewer/StatsHandler.cpp +++ b/src/osgViewer/StatsHandler.cpp @@ -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