Commit 6ee61601 authored by Julian Helfferich's avatar Julian Helfferich Committed by Albert Astals Cid

Fix incorrect resize before game is started

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.

BUGS: 380464
REVIEW: 130167
parent e484674e
......@@ -128,6 +128,8 @@ void KBlocksWin::startGame()
startGame();
}
mpGameView->fitInView(mpGameScene->sceneRect(), Qt::KeepAspectRatio);
mScore->setText(i18n("Points: %1 - Lines: %2 - Level: %3", 0, 0, 0));
m_pauseAction->setEnabled(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment