When changing resolutions, SwitchThemeAndLanguage was being called after clearing all subscribes but STAL wasn't reloading them because nothing had changed. Reload them explicitly if the theme doesn't change.
I'm not sure what the rationale behind taking this code path for changing the resolution as it seems to have nothing to do with the theme.
This commit is contained in:
@@ -135,7 +135,8 @@ namespace
|
||||
/* In case the previous theme overloaded class bindings, reinitialize them. */
|
||||
LUA->RegisterTypes();
|
||||
|
||||
THEME->SwitchThemeAndLanguage( g_sNewTheme, THEME->GetCurLanguage(), PREFSMAN->m_bPseudoLocalize );
|
||||
if( !THEME->SwitchThemeAndLanguage( g_sNewTheme, THEME->GetCurLanguage(), PREFSMAN->m_bPseudoLocalize ) )
|
||||
THEME->ReloadSubscribers();
|
||||
PREFSMAN->m_sTheme.Set( g_sNewTheme );
|
||||
|
||||
/* Apply the new window title, icon and aspect ratio. */
|
||||
|
||||
Reference in New Issue
Block a user