From 08c8f3bd7b8832aa7f4ae918ad78529d8491910c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 22 Dec 2020 12:23:59 +0000 Subject: [PATCH] Updated width of background quad --- src/osgViewer/StatsHandler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osgViewer/StatsHandler.cpp b/src/osgViewer/StatsHandler.cpp index 665ce4acf..c026cfc2b 100644 --- a/src/osgViewer/StatsHandler.cpp +++ b/src/osgViewer/StatsHandler.cpp @@ -434,6 +434,9 @@ void StatsHandler::setWindowSize(int width, int height) if (width <= 0 || height <= 0) return; + _statsWidth = width; + _statsHeight = height; + _camera->setViewport(0, 0, width, height); if (fabs(height*_statsWidth) <= fabs(width*_statsHeight)) {