I'm not sure why this ClearSubscribers was here; it's causing
metrics to not be loaded after a resolution change, because the reload is optimized out by SwitchThemeAndLanguage. (We may have loaded ThemeMetrics on demand in the past.) The reload needs to always happen, even though the theme hasn't changed, since the theme load is affected by the resolution; eg. upvalues in Lua scripts may have been computed based on SCREEN_WIDTH.
This commit is contained in:
@@ -7,7 +7,7 @@ namespace GameLoop
|
||||
{
|
||||
void RunGameLoop();
|
||||
void SetUpdateRate( float fUpdateRate );
|
||||
void ChangeTheme( const RString &sNewTheme, const RString &sNewScreen );
|
||||
void ChangeTheme( const RString &sNewTheme, const RString &sNewScreen, bool bForced = false );
|
||||
void StartConcurrentRendering();
|
||||
void FinishConcurrentRendering();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user