Author: bfreisen
Date: Sat Oct 15 11:44:15 2016
New Revision: 72972

URL: http://svn.reactos.org/svn/reactos?rev=72972&view=rev
Log:
[MSPAINT]
- fix an odd quirk that resulted from Paint setting wallpaper and wallpaper 
style in the wrong order
- add the flag SPIF_SENDWININICHANGE

Setting wallpapers now works, whenever the OS natively supports the respective 
file format for wallpapers.

Modified:
    trunk/reactos/base/applications/mspaint/registry.cpp

Modified: trunk/reactos/base/applications/mspaint/registry.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/registry.cpp?rev=72972&r1=72971&r2=72972&view=diff
==============================================================================
--- trunk/reactos/base/applications/mspaint/registry.cpp        [iso-8859-1] 
(original)
+++ trunk/reactos/base/applications/mspaint/registry.cpp        [iso-8859-1] 
Sat Oct 15 11:44:15 2016
@@ -37,9 +37,6 @@
 
 void RegistrySettings::SetWallpaper(LPCTSTR szFileName, DWORD dwStyle, DWORD 
dwTile)
 {
-    // TODO: find out whether this line still serves a purpose
-    SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (PVOID) szFileName, 
SPIF_UPDATEINIFILE);
-
     if ((dwStyle > 2) || (dwTile > 2))
         return;
 
@@ -56,6 +53,8 @@
         desktop.SetStringValue(_T("WallpaperStyle"), strStyle);
         desktop.SetStringValue(_T("TileWallpaper"), strTile);
     }
+
+    SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (PVOID) szFileName, 
SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);
 }
 
 void RegistrySettings::LoadPresets()


Reply via email to