Fix TV and splash on res change

This commit is contained in:
elasota
2020-04-04 18:50:29 -04:00
parent 59e9a9480e
commit 805638f2c9
5 changed files with 31 additions and 20 deletions

View File

@@ -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