The Lua state needs to be reset on a theme change to reload scripts

This commit is contained in:
Chris Danford
2005-01-24 03:05:37 +00:00
parent cd9c48d645
commit ed6aa8b02e
3 changed files with 5 additions and 3 deletions
+2
View File
@@ -276,6 +276,8 @@ void ThemeManager::SwitchThemeAndLanguage( const CString &sThemeName, const CStr
void ThemeManager::UpdateLuaGlobals()
{
LUA->ResetState();
/* Important: explicitly refresh cached metrics that we use. */
THEME_SCREEN_WIDTH.Read();
THEME_SCREEN_HEIGHT.Read();