From fb79bc9224f98ddada70a16444b70d5ee1c30bec Mon Sep 17 00:00:00 2001 From: hrydgard Date: Sun, 28 Sep 2008 17:47:44 +0000 Subject: [PATCH] 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 --- Source/Plugins/Plugin_VideoDX9/Src/EmuWindow.cpp | 9 +++++++++ Source/Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/Source/Plugins/Plugin_VideoDX9/Src/EmuWindow.cpp b/Source/Plugins/Plugin_VideoDX9/Src/EmuWindow.cpp index c6965545bc..eb81239957 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/EmuWindow.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/EmuWindow.cpp @@ -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); diff --git a/Source/Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp b/Source/Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp index 323841ebec..1267919c12 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp @@ -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);