From Mathias Froehlich, "Attached is a change to the stats handler so that the aspect ratio of the

viewer stats coordinates always stay about 1:1 to the pixels.
This helps for more readable stats with very wide windows for example."
This commit is contained in:
Robert Osfield
2012-02-06 13:40:01 +00:00
parent af01a9e984
commit 5d50913722
2 changed files with 21 additions and 3 deletions

View File

@@ -149,6 +149,7 @@ class OSGVIEWER_EXPORT StatsHandler : public osgGA::GUIEventHandler
protected:
void setUpHUDCamera(osgViewer::ViewerBase* viewer);
void setWindowSize(int width, int height);
osg::Geometry* createBackgroundRectangle(const osg::Vec3& pos, const float width, const float height, osg::Vec4& color);