mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
Fix flicker in load house UI
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "ResourceManager.h"
|
||||
#include "PLTimeTaggedVOSEvent.h"
|
||||
#include "VirtualDirectory.h"
|
||||
#include "WindowManager.h"
|
||||
|
||||
|
||||
#define kLoadHouseDialogID 1000
|
||||
@@ -343,6 +344,8 @@ void DoLoadHouse (void)
|
||||
Dialog *theDial;
|
||||
short i, wasIndex, screenCount;
|
||||
Boolean leaving, whoCares;
|
||||
|
||||
PortabilityLayer::WindowManager *wm = PortabilityLayer::WindowManager::GetInstance();
|
||||
|
||||
BringUpDialog(&theDial, kLoadHouseDialogID, nullptr);
|
||||
|
||||
@@ -389,6 +392,9 @@ void DoLoadHouse (void)
|
||||
|
||||
leaving = false;
|
||||
|
||||
Window *exclWindow = theDial->GetWindow();
|
||||
wm->SwapExclusiveWindow(exclWindow); // Push exclusive window
|
||||
|
||||
UpdateLoadDialog(theDial);
|
||||
|
||||
while (!leaving)
|
||||
@@ -496,6 +502,8 @@ void DoLoadHouse (void)
|
||||
UpdateLoadDialog(theDial);
|
||||
}
|
||||
|
||||
wm->SwapExclusiveWindow(exclWindow); // Pop exclusive window
|
||||
|
||||
theDial->Destroy();
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user