mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +00:00
Fix TV and splash on res change
This commit is contained in:
@@ -426,6 +426,25 @@ void HandleHighLevelEvent (EventRecord *theEvent)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
//-------------------------------------------------------------- HandleSplashResolutionChange
|
||||
void HandleSplashResolutionChange(void)
|
||||
{
|
||||
FlushResolutionChange();
|
||||
|
||||
RecomputeInterfaceRects();
|
||||
RecreateOffscreens();
|
||||
CloseMainWindow();
|
||||
OpenMainWindow();
|
||||
|
||||
UpdateMainWindow();
|
||||
|
||||
//ResetLocale(true);
|
||||
//InitScoreboardMap();
|
||||
//RefreshScoreboard(wasScoreboardTitleMode);
|
||||
//DumpScreenOn(&justRoomsRect);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------- HandleIdleTask
|
||||
// Handle some processing during event lulls.
|
||||
|
||||
@@ -443,6 +462,14 @@ void HandleIdleTask (void)
|
||||
newRoomNow = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (theMode == kSplashMode)
|
||||
{
|
||||
if (thisMac.isResolutionDirty)
|
||||
{
|
||||
HandleSplashResolutionChange();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------- HandleEvent
|
||||
|
||||
Reference in New Issue
Block a user