mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Fixed negative W/H issue: http://rainmeter.net/forum/viewtopic.php?t=8614&p=59732#p59732
- Code cleanup.
This commit is contained in:
@ -360,11 +360,9 @@ void CMeter::ReadConfig(CConfigParser& parser, const WCHAR* section)
|
||||
}
|
||||
|
||||
m_W = (int)parser.ReadFormula(section, L"W", 1.0);
|
||||
m_W = max(m_W, 0);
|
||||
m_WDefined = parser.GetLastValueDefined();
|
||||
|
||||
m_H = (int)parser.ReadFormula(section, L"H", 1.0);
|
||||
m_H = max(m_H, 0);
|
||||
m_HDefined = parser.GetLastValueDefined();
|
||||
|
||||
if (!m_Initialized)
|
||||
|
Reference in New Issue
Block a user