Manage Dialog: Added "UseD2D" option in the Settings Tab

If changed, all skins are refreshed
Option is disabled on systems that do not support D2D
This commit is contained in:
Brian Ferguson
2013-07-25 16:44:06 -06:00
parent 05cbcb9aa8
commit 2418c3692f
7 changed files with 41 additions and 11 deletions

View File

@@ -1757,3 +1757,13 @@ void Rainmeter::TestSettingsFile(bool bDefaultIniLocation)
ShowMessage(nullptr, error.c_str(), MB_OK | MB_ICONERROR);
}
}
void Rainmeter::SetUseD2D(bool enabled)
{
m_UseD2D = enabled;
// Save to Rainmeter.ini
WritePrivateProfileString(L"Rainmeter", L"UseD2D", enabled ? L"1" : L"0", m_IniFile.c_str());
RefreshAll();
}