mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Fix sound prefs window flickering dark when changing the volume
This commit is contained in:
@@ -726,6 +726,8 @@ void DoSoundPrefs (void)
|
||||
PLError_t theErr;
|
||||
short itemHit;
|
||||
Boolean leaving;
|
||||
|
||||
PortabilityLayer::WindowManager *wm = PortabilityLayer::WindowManager::GetInstance();
|
||||
|
||||
BringUpDialog(&prefDlg, kSoundPrefsDialID, nullptr);
|
||||
|
||||
@@ -741,6 +743,9 @@ void DoSoundPrefs (void)
|
||||
SetDialogItemValue(prefDlg, kPlayMusicItem, (short)wasPlay);
|
||||
leaving = false;
|
||||
|
||||
Window *exclStack = prefDlg->GetWindow();
|
||||
wm->SwapExclusiveWindow(exclStack); // Push exclusive window
|
||||
|
||||
while (!leaving)
|
||||
{
|
||||
itemHit = prefDlg->ExecuteModal(SoundFilter);
|
||||
@@ -844,6 +849,8 @@ void DoSoundPrefs (void)
|
||||
}
|
||||
}
|
||||
|
||||
wm->SwapExclusiveWindow(exclStack); // Pop exclusive window
|
||||
|
||||
prefDlg->Destroy();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user