forked from mia/Aegisub
Fix bug where detaching loaded but hidden video had broken results.
Originally committed to SVN as r3798.
This commit is contained in:
parent
3719227e9e
commit
feb77217c7
1 changed files with 2 additions and 3 deletions
|
@ -631,8 +631,6 @@ void FrameMain::InitContents() {
|
|||
//SetSizer(MainSizer);
|
||||
|
||||
// Set display
|
||||
StartupLog(_T("Set display mode"));
|
||||
SetDisplayMode(0,0);
|
||||
StartupLog(_T("Perform layout"));
|
||||
Layout();
|
||||
StartupLog(_T("Set focus to edting box"));
|
||||
|
@ -894,7 +892,7 @@ void FrameMain::SetDisplayMode(int video, int audio) {
|
|||
MainSizer->Layout();
|
||||
Layout();
|
||||
Show(true);
|
||||
VideoContext::Get()->UpdateDisplays(true);
|
||||
if (showVideo) VideoContext::Get()->UpdateDisplays(true);
|
||||
Thaw();
|
||||
}
|
||||
|
||||
|
@ -1286,6 +1284,7 @@ void FrameMain::DetachVideo(bool detach) {
|
|||
if (!detachedVideo) {
|
||||
detachedVideo = new DialogDetachedVideo(this, videoBox->videoDisplay->GetClientSize());
|
||||
detachedVideo->Show();
|
||||
VideoContext::Get()->UpdateDisplays(true);
|
||||
}
|
||||
}
|
||||
else if (detachedVideo) {
|
||||
|
|
Loading…
Reference in a new issue