Fix incorrect resize before game is started.

Review Request #130167 - Created June 27, 2017 and submitted

Information
Julian Helfferich
kblocks
master
380464
Reviewers
Kdegames

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.

Albert Astals Cid
Albert Astals Cid
Julian Helfferich
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 6ee616019ea9e67eb19ed0a8ce53feca4e7633a0 by Albert Astals Cid on behalf of Julian Helfferich to branch Applications/17.08.
Loading...