mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
FIXED: IMAGE and STRING meter were not compatible with a new value-reading method of r330.
This commit is contained in:
parent
df3717a51b
commit
506b6b84f3
@ -220,11 +220,11 @@ void CMeterImage::ReadConfig(const WCHAR* section)
|
|||||||
|
|
||||||
m_PreserveAspectRatio = 0!=parser.ReadInt(section, L"PreserveAspectRatio", 0);
|
m_PreserveAspectRatio = 0!=parser.ReadInt(section, L"PreserveAspectRatio", 0);
|
||||||
|
|
||||||
if (-1 != parser.ReadInt(section, L"W", -1))
|
if (-1 != (int)parser.ReadFormula(section, L"W", -1))
|
||||||
{
|
{
|
||||||
m_WidthDefined = true;
|
m_WidthDefined = true;
|
||||||
}
|
}
|
||||||
if (-1 != parser.ReadInt(section, L"H", -1))
|
if (-1 != (int)parser.ReadFormula(section, L"H", -1))
|
||||||
{
|
{
|
||||||
m_HeightDefined = true;
|
m_HeightDefined = true;
|
||||||
}
|
}
|
||||||
|
@ -343,7 +343,7 @@ void CMeterString::ReadConfig(const WCHAR* section)
|
|||||||
throw CError(std::wstring(L"No such StringEffect: ") + effect, __LINE__, __FILE__);
|
throw CError(std::wstring(L"No such StringEffect: ") + effect, __LINE__, __FILE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (-1 != parser.ReadInt(section, L"W", -1) && -1 != parser.ReadInt(section, L"H", -1))
|
if (-1 != (int)parser.ReadFormula(section, L"W", -1) && -1 != (int)parser.ReadFormula(section, L"H", -1))
|
||||||
{
|
{
|
||||||
m_DimensionsDefined = true;
|
m_DimensionsDefined = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user