Restore the previous key focus widget after playing video

openmw-38
scrawl 9 years ago
parent f5d90f7d98
commit 9897400d97

@ -1743,6 +1743,7 @@ namespace MWGui
MyGUI::IntSize screenSize = MyGUI::RenderManager::getInstance().getViewSize();
sizeVideo(screenSize.width, screenSize.height);
MyGUI::Widget* oldKeyFocus = MyGUI::InputManager::getInstance().getKeyFocusWidget();
setKeyFocusWidget(mVideoWidget);
mVideoBackground->setVisible(true);
@ -1770,6 +1771,8 @@ namespace MWGui
MWBase::Environment::get().getSoundManager()->resumeSounds();
setKeyFocusWidget(oldKeyFocus);
setCursorVisible(cursorWasVisible);
// Restore normal rendering

Loading…
Cancel
Save