From 56bc462007a5963cfd716f765b007c0ec74bf486 Mon Sep 17 00:00:00 2001 From: elsid Date: Fri, 3 Jul 2020 20:42:51 +0200 Subject: [PATCH] Make all stats fit into the window --- components/resource/stats.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/resource/stats.cpp b/components/resource/stats.cpp index 2dda2c2df..147970add 100644 --- a/components/resource/stats.cpp +++ b/components/resource/stats.cpp @@ -25,7 +25,7 @@ StatsHandler::StatsHandler(): _statsWidth(1280.0f), _statsHeight(1024.0f), _font(""), - _characterSize(20.0f) + _characterSize(18.0f) { _camera = new osg::Camera; _camera->getOrCreateStateSet()->setGlobalDefaults(); @@ -45,6 +45,8 @@ Profiler::Profiler() else _font = ""; + _characterSize = 18; + setKeyEventTogglesOnScreenStats(osgGA::GUIEventAdapter::KEY_F3); }