mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Minor change.
This commit is contained in:
parent
405976b7a6
commit
97d69abc47
@ -1248,8 +1248,8 @@ void CSystem::SetWallpaper(const std::wstring& wallpaper, const std::wstring& st
|
|||||||
std::wstring file = Rainmeter->GetSettingsPath();
|
std::wstring file = Rainmeter->GetSettingsPath();
|
||||||
file += L"Wallpaper.bmp";
|
file += L"Wallpaper.bmp";
|
||||||
|
|
||||||
const CLSID jpegClsid = { 0x557cf400, 0x1a04, 0x11d3, { 0x9a, 0x73, 0x0, 0x0, 0xf8, 0x1e, 0xf3, 0x2e } };
|
const CLSID bmpClsid = { 0x557cf400, 0x1a04, 0x11d3, { 0x9a, 0x73, 0x0, 0x0, 0xf8, 0x1e, 0xf3, 0x2e } };
|
||||||
if (bitmap->Save(file.c_str(), &jpegClsid) == Ok)
|
if (bitmap->Save(file.c_str(), &bmpClsid) == Ok)
|
||||||
{
|
{
|
||||||
setWallpaperStyle();
|
setWallpaperStyle();
|
||||||
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (void*)file.c_str(), SPIF_UPDATEINIFILE);
|
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (void*)file.c_str(), SPIF_UPDATEINIFILE);
|
||||||
|
Loading…
Reference in New Issue
Block a user