From 9affdf4b1a4247a2ac558f899a14bff34a861eea Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 5 Oct 2006 01:06:06 +0000 Subject: [PATCH] fix theme changing --- stepmania/src/ScreenOptionsMasterPrefs.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/stepmania/src/ScreenOptionsMasterPrefs.cpp b/stepmania/src/ScreenOptionsMasterPrefs.cpp index f046ca2f01..77cf2c5af1 100644 --- a/stepmania/src/ScreenOptionsMasterPrefs.cpp +++ b/stepmania/src/ScreenOptionsMasterPrefs.cpp @@ -239,17 +239,14 @@ static void Theme( int &sel, bool ToSel, const ConfOption *pConfOption ) { sel = 0; for( unsigned i=1; iGetCurThemeName()) ) + if( !stricmp(vsThemeNames[i], PREFSMAN->m_sTheme.Get()) ) sel = i; } else { const RString sNewTheme = vsThemeNames[sel]; - if( THEME->GetCurThemeName() != sNewTheme ) - { - THEME->SwitchThemeAndLanguage( sNewTheme, THEME->GetCurLanguage(), PREFSMAN->m_bPseudoLocalize ); - PREFSMAN->m_sTheme.Set( sNewTheme ); - } + if( PREFSMAN->m_sTheme.Get() != sNewTheme ) + PREFSMAN->m_sTheme.Set( sNewTheme ); // OPT_APPLY_THEME will load the theme } }