mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user