Make VideoContext::SetVideo explicitly call VideoContext::UpdateDisplays rather than relying on the calling code restoring it to a consistent state. Updates #1159.

Originally committed to SVN as r4101.
This commit is contained in:
Thomas Goyne 2010-02-14 22:02:33 +00:00
parent 621cefe14e
commit 509f748cfb
1 changed files with 2 additions and 0 deletions

View File

@ -274,6 +274,8 @@ void VideoContext::SetVideo(const wxString &filename) {
// Show warning
wxString warning = provider->GetWarning().c_str();
if (!warning.IsEmpty()) wxMessageBox(warning,_T("Warning"),wxICON_WARNING | wxOK);
UpdateDisplays(true);
}
catch (wxString &e) {