New disable screensaver code

This commit is contained in:
pagefault
2004-04-25 04:02:55 +00:00
parent 5a8d57d4e7
commit f8cc108fab

View File

@@ -614,18 +614,17 @@ LRESULT CALLBACK Main_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_CLOSE:
break;
case WM_SYSCOMMAND:
{
if (DisableScreenSaver)
{
switch (wParam)
{
case SC_MONITORPOWER:
return 0;
}
}
}
break;
default:
return DefWindowProc(hWnd,uMsg,wParam,lParam);
}
}
return 0;
}