forked from teamnwah/openmw-tes3coop
Fix main menu background showing when resizing window during load
This commit is contained in:
parent
3788fb042e
commit
5a955279bb
1 changed files with 4 additions and 5 deletions
|
@ -68,10 +68,10 @@ namespace MWGui
|
|||
{
|
||||
if (visible)
|
||||
updateMenu();
|
||||
else
|
||||
showBackground(
|
||||
MWBase::Environment::get().getWindowManager()->containsMode(MWGui::GM_MainMenu) &&
|
||||
MWBase::Environment::get().getStateManager()->getState() == MWBase::StateManager::State_NoGame);
|
||||
|
||||
showBackground(
|
||||
MWBase::Environment::get().getWindowManager()->containsMode(MWGui::GM_MainMenu) &&
|
||||
MWBase::Environment::get().getStateManager()->getState() == MWBase::StateManager::State_NoGame);
|
||||
|
||||
OEngine::GUI::Layout::setVisible (visible);
|
||||
}
|
||||
|
@ -220,7 +220,6 @@ namespace MWGui
|
|||
|
||||
MWBase::StateManager::State state = MWBase::Environment::get().getStateManager()->getState();
|
||||
|
||||
showBackground(state == MWBase::StateManager::State_NoGame);
|
||||
mVersionText->setVisible(state == MWBase::StateManager::State_NoGame);
|
||||
|
||||
std::vector<std::string> buttons;
|
||||
|
|
Loading…
Reference in a new issue