Make the cool stuff in r4606 a little less cool, but apparently wxGtk doesn't let you freeze invisible windows and get away with it, so we'll have to live with a little extra flicker.
Originally committed to SVN as r4636.
This commit is contained in:
parent
6589d258ce
commit
37cd66c950
1 changed files with 6 additions and 5 deletions
|
@ -213,8 +213,8 @@ FrameMain::FrameMain (wxArrayString args)
|
||||||
PerformVersionCheck(false);
|
PerformVersionCheck(false);
|
||||||
|
|
||||||
StartupLog(_T("Display main window"));
|
StartupLog(_T("Display main window"));
|
||||||
Freeze();
|
|
||||||
Show();
|
Show();
|
||||||
|
Freeze();
|
||||||
SetDisplayMode(1, 1);
|
SetDisplayMode(1, 1);
|
||||||
Thaw();
|
Thaw();
|
||||||
|
|
||||||
|
@ -856,8 +856,9 @@ void FrameMain::SetDisplayMode(int video, int audio) {
|
||||||
showVideo = sv;
|
showVideo = sv;
|
||||||
showAudio = sa;
|
showAudio = sa;
|
||||||
|
|
||||||
// Stop
|
bool didFreeze = !IsFrozen();
|
||||||
Freeze();
|
if (didFreeze) Freeze();
|
||||||
|
|
||||||
VideoContext::Get()->Stop();
|
VideoContext::Get()->Stop();
|
||||||
|
|
||||||
// Set display
|
// Set display
|
||||||
|
@ -871,9 +872,9 @@ void FrameMain::SetDisplayMode(int video, int audio) {
|
||||||
MainSizer->RecalcSizes();
|
MainSizer->RecalcSizes();
|
||||||
MainSizer->Layout();
|
MainSizer->Layout();
|
||||||
Layout();
|
Layout();
|
||||||
Show(true);
|
|
||||||
if (showVideo) VideoContext::Get()->UpdateDisplays(true);
|
if (showVideo) VideoContext::Get()->UpdateDisplays(true);
|
||||||
Thaw();
|
|
||||||
|
if (didFreeze) Thaw();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief Update title bar
|
/// @brief Update title bar
|
||||||
|
|
Loading…
Reference in a new issue