option icons are almost working...

This commit is contained in:
Chris Danford
2002-09-03 06:33:08 +00:00
parent a78bcf7c7f
commit 40277568d0
21 changed files with 303 additions and 235 deletions
+3 -3
View File
@@ -31,7 +31,7 @@ ThemeManager::ThemeManager()
m_pIniMetrics = new IniFile;
/* Update the metric cache on the first call to GetMetric. */
NextReloadCheck = -1;
m_uNextReloadTicks = -1;
m_sCurThemeName = BASE_THEME_NAME; // Use te base theme for now. It's up to PrefsManager to change this.
@@ -219,9 +219,9 @@ try_metric_again:
CString sDefaultMetricPath = GetMetricsPathFromName(BASE_THEME_NAME);
// Is our metric cache out of date?
if (NextReloadCheck == -1 || TIMER->GetTimeSinceStart() > NextReloadCheck)
if (m_uNextReloadTicks == -1 || ::GetTickCount() > m_uNextReloadTicks)
{
NextReloadCheck = TIMER->GetTimeSinceStart()+1.0f;
m_uNextReloadTicks = GetTickCount()+1000;
if( m_iHashForCurThemeMetrics != GetHashForFile(sCurMetricPath) ||
m_iHashForBaseThemeMetrics != GetHashForFile(sDefaultMetricPath) )
{