mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 10:09:39 +00:00
Don't crash on resize events during load
This commit is contained in:
parent
94e255ea47
commit
5918b84666
1 changed files with 4 additions and 2 deletions
|
@ -929,6 +929,10 @@ namespace MWGui
|
||||||
|
|
||||||
void WindowManager::windowResized(int x, int y)
|
void WindowManager::windowResized(int x, int y)
|
||||||
{
|
{
|
||||||
|
mGuiManager->windowResized();
|
||||||
|
mLoadingScreen->onResChange (x,y);
|
||||||
|
if (!mHud)
|
||||||
|
return; // UI not initialized yet
|
||||||
mHud->onResChange(x, y);
|
mHud->onResChange(x, y);
|
||||||
mConsole->onResChange(x, y);
|
mConsole->onResChange(x, y);
|
||||||
mMenu->onResChange(x, y);
|
mMenu->onResChange(x, y);
|
||||||
|
@ -938,10 +942,8 @@ namespace MWGui
|
||||||
mBookWindow->center();
|
mBookWindow->center();
|
||||||
mQuickKeysMenu->center();
|
mQuickKeysMenu->center();
|
||||||
mSpellBuyingWindow->center();
|
mSpellBuyingWindow->center();
|
||||||
mLoadingScreen->onResChange (x,y);
|
|
||||||
mDragAndDrop->mDragAndDropWidget->setSize(MyGUI::IntSize(x, y));
|
mDragAndDrop->mDragAndDropWidget->setSize(MyGUI::IntSize(x, y));
|
||||||
mInputBlocker->setSize(MyGUI::IntSize(x,y));
|
mInputBlocker->setSize(MyGUI::IntSize(x,y));
|
||||||
mGuiManager->windowResized();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindowManager::pushGuiMode(GuiMode mode)
|
void WindowManager::pushGuiMode(GuiMode mode)
|
||||||
|
|
Loading…
Reference in a new issue