Updated width of background quad

This commit is contained in:
Robert Osfield 2020-12-22 12:23:59 +00:00
parent 5f03aec6bc
commit 08c8f3bd7b

View File

@ -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))
{