Fixed incomplete fix in r420 and r422.

Fixed the issue that the result of some bangs is overwritten with the default value if DynamicVariables=1 is added to Measure/Meter. (Issue 125) Note that this fix is effective only when the setting is not defined in skin configuration file. The result of !RainmeterHideMeter(or Show/Toggle) is overwritten if Hidden=0/1 is added.
Some minor changes.
This commit is contained in:
spx
2010-05-31 21:02:04 +00:00
parent 669791c075
commit b675265606
6 changed files with 109 additions and 71 deletions

View File

@ -657,7 +657,7 @@ int CConfigParser::ReadFormula(const std::wstring& result, double* resultValue)
return -1;
}
Color CConfigParser::ReadColor(LPCTSTR section, LPCTSTR key, Color defValue)
Color CConfigParser::ReadColor(LPCTSTR section, LPCTSTR key, const Color& defValue)
{
TCHAR buffer[256];
swprintf(buffer, L"%i, %i, %i, %i", defValue.GetR(), defValue.GetG(), defValue.GetB(), defValue.GetA());