mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Don't crash on resize events during load
This commit is contained in:
parent
94e255ea47
commit
5918b84666
@ -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…
x
Reference in New Issue
Block a user