mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Fix resolution desync if resize occurs during the loading screen.
This commit is contained in:
@@ -55,6 +55,7 @@ DrawSurface *loadScreenRingSurface;
|
||||
|
||||
void ReadInPrefs (void);
|
||||
void WriteOutPrefs (void);
|
||||
void HandleSplashResolutionChange (void);
|
||||
int main(int argc, const char **argv);
|
||||
|
||||
|
||||
@@ -1137,16 +1138,27 @@ int gpAppMain()
|
||||
loadScreenRingSurface = nullptr;
|
||||
}
|
||||
|
||||
bool resolutionChanged = false;
|
||||
|
||||
if (!isPrefsLoaded)
|
||||
{
|
||||
WriteOutPrefs();
|
||||
|
||||
if (thisMac.isResolutionDirty)
|
||||
{
|
||||
resolutionChanged = true;
|
||||
FlushResolutionChange();
|
||||
}
|
||||
|
||||
ShowInitialLaunchDisclaimer();
|
||||
}
|
||||
|
||||
FlushResolutionChange();
|
||||
if (thisMac.isResolutionDirty)
|
||||
resolutionChanged = true;
|
||||
|
||||
if (resolutionChanged)
|
||||
HandleSplashResolutionChange();
|
||||
else
|
||||
OpenMainWindow();
|
||||
|
||||
if (isDoColorFade)
|
||||
|
Reference in New Issue
Block a user