mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Added BackgroundMode=4 for tiling background image.
- Added tinting functions for Background. - Added "ImageCrop" option to Meter=IMAGE/BAR/HISTOGRAM/ROTATOR and Background. - Added "Tile" option to Meter=IMAGE. - Some code cleanups.
This commit is contained in:
@ -2843,9 +2843,7 @@ void CRainmeter::ReadGeneralSettings(const std::wstring& iniFile)
|
||||
std::wstring area = parser.ReadString(L"Rainmeter", L"DesktopWorkArea", L"");
|
||||
if (!area.empty())
|
||||
{
|
||||
RECT r;
|
||||
swscanf(area.c_str(), L"%i,%i,%i,%i", &r.left, &r.top, &r.right, &r.bottom);
|
||||
m_DesktopWorkAreas[0] = r;
|
||||
m_DesktopWorkAreas[0] = parser.ParseRECT(area.c_str());
|
||||
m_DesktopWorkAreaChanged = true;
|
||||
}
|
||||
|
||||
@ -2856,9 +2854,7 @@ void CRainmeter::ReadGeneralSettings(const std::wstring& iniFile)
|
||||
area = parser.ReadString(L"Rainmeter", buffer, L"");
|
||||
if (!area.empty())
|
||||
{
|
||||
RECT r;
|
||||
swscanf(area.c_str(), L"%i,%i,%i,%i", &r.left, &r.top, &r.right, &r.bottom);
|
||||
m_DesktopWorkAreas[i] = r;
|
||||
m_DesktopWorkAreas[i] = parser.ParseRECT(area.c_str());
|
||||
m_DesktopWorkAreaChanged = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user