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,6 +614,7 @@ LRESULT CALLBACK Main_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_CLOSE:
break;
case WM_SYSCOMMAND:
if (DisableScreenSaver)
{
switch (wParam)
{
@@ -624,8 +625,6 @@ LRESULT CALLBACK Main_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
break;
default:
return DefWindowProc(hWnd,uMsg,wParam,lParam);
}
}
return 0;
}