Disable screen saver in the gfx plugin window management too.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@720 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2008-09-28 17:47:44 +00:00
parent 68ae5ac070
commit fb79bc9224
2 changed files with 18 additions and 0 deletions

View File

@ -64,6 +64,15 @@ namespace EmuWindow
// Reset the D3D Device here
// Also make damn sure that this is not called from inside rendering a frame :P
break;
case WM_SYSCOMMAND:
switch (wParam)
{
case SC_SCREENSAVE:
case SC_MONITORPOWER:
return 0;
}
break;
}
return DefWindowProc(hWnd, iMsg, wParam, lParam);

View File

@ -130,6 +130,15 @@ namespace EmuWindow
//Shutdown();
//PostQuitMessage( 0 );
break;
case WM_SYSCOMMAND:
switch (wParam)
{
case SC_SCREENSAVE:
case SC_MONITORPOWER:
return 0;
}
break;
}
return DefWindowProc(hWnd, iMsg, wParam, lParam);