Author: ekohl
Date: Sat Feb 23 18:52:13 2013
New Revision: 58358
URL:
http://svn.reactos.org/svn/reactos?rev=58358&view=rev
Log:
[DESK]
Remove calls to SystemParametersInfoW(SPI_SETSCREENSAVEACTIVE,... as it does not make
sense to activate and deactivate screen savers when activating or deactivating the screen
saver page. The screen saver should be activated when the user chooses a screen saver and
it should be deactivated when the user chooses the "None" option.
CORE-6963#resolve
Modified:
trunk/reactos/dll/cpl/desk/screensaver.c
Modified: trunk/reactos/dll/cpl/desk/screensaver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/screensaver.c…
==============================================================================
--- trunk/reactos/dll/cpl/desk/screensaver.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/screensaver.c [iso-8859-1] Sat Feb 23 18:52:13 2013
@@ -758,16 +758,14 @@
case PSN_SETACTIVE:
{
- /* Activate screen saver support */
- SystemParametersInfoW(SPI_SETSCREENSAVEACTIVE, TRUE, 0,
SPIF_SENDCHANGE);
+ /* Enable screensaver preview support */
SetScreenSaverPreviewBox(hwndDlg, pData);
break;
}
case PSN_KILLACTIVE:
{
- /* Disable screensaver support */
- SystemParametersInfoW(SPI_SETSCREENSAVEACTIVE, FALSE, 0,
SPIF_SENDCHANGE);
+ /* Kill running preview screensaver */
if (pData->PrevWindowPi.hProcess)
{
TerminateProcess(pData->PrevWindowPi.hProcess, 0);