Fix incorrect resize before game is started.
Review Request #130167 - Created June 27, 2017 and updated
This commit fixes bug 380464.
When the game window is resized before a game is started, the game scene is not correctly rescaled. When starting the game it might be too small (it seems never to be too large).
This commit fixes the bug by triggering a fitInView() call of the gameView. The same function is triggered by a resize event.
Started the program -> Resized the window (enlarged vertically) -> started a game -> resized the window.
Before: Bug confirmed.
After: Bug fixed.
This seems like a workaround for a bug somewhere else? I mean if we're already calling it in resizeEvent calling it here again seems a bit redundant, no? Have you checked if maybe the mpGameScene->sceneRect() value in resizeEvent is bad or something?