Updated width of background quad
This commit is contained in:
parent
5f03aec6bc
commit
08c8f3bd7b
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user