mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Turn off screensavers. Note that this won't work on Vista+ when there's a password.
This commit is contained in:
1 parent
51493ab8cb
commit
0ccebacbd6
1 file changed
+15
@@ -746,6 +746,21 @@ namespace MainWindow
|
||||
UpdateMenus();
|
||||
break;
|
||||
|
||||
// Turn off the screensaver.
|
||||
// Note that if there's a screensaver password, this simple method
|
||||
// doesn't work on Vista or higher.
|
||||
case WM_SYSCOMMAND:
|
||||
{
|
||||
switch (wParam)
|
||||
{
|
||||
case SC_SCREENSAVE:
|
||||
return 0;
|
||||
case SC_MONITORPOWER:
|
||||
return 0;
|
||||
}
|
||||
return DefWindowProc(hWnd, message, wParam, lParam);
|
||||
}
|
||||
|
||||
default:
|
||||
return DefWindowProc(hWnd, message, wParam, lParam);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user