1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

Make all stats fit into the window

This commit is contained in:
elsid 2020-07-03 20:42:51 +02:00
parent 08469af742
commit 56bc462007
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

@ -25,7 +25,7 @@ StatsHandler::StatsHandler():
_statsWidth(1280.0f), _statsWidth(1280.0f),
_statsHeight(1024.0f), _statsHeight(1024.0f),
_font(""), _font(""),
_characterSize(20.0f) _characterSize(18.0f)
{ {
_camera = new osg::Camera; _camera = new osg::Camera;
_camera->getOrCreateStateSet()->setGlobalDefaults(); _camera->getOrCreateStateSet()->setGlobalDefaults();
@ -45,6 +45,8 @@ Profiler::Profiler()
else else
_font = ""; _font = "";
_characterSize = 18;
setKeyEventTogglesOnScreenStats(osgGA::GUIEventAdapter::KEY_F3); setKeyEventTogglesOnScreenStats(osgGA::GUIEventAdapter::KEY_F3);
} }