aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar vayne <vayne@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-18 23:05:57 +0000
committerGravatar vayne <vayne@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-18 23:05:57 +0000
commit6275f005bf3a30719e93631746fab4bbb172a4f3 (patch)
tree7bc6de82b5250d76ec2858870acad1aca68eda6b
parentbc996f4dee25e9c679cdbba638f10ef6866af3e3 (diff)
fix for disabling screensaver when in fullscreen mode while using the sub window.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19903 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--Gui/win32/gui.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/Gui/win32/gui.c b/Gui/win32/gui.c
index a04610564c..a795d0bd69 100644
--- a/Gui/win32/gui.c
+++ b/Gui/win32/gui.c
@@ -601,6 +601,17 @@ static LRESULT CALLBACK SubProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
SetForegroundWindow(hWnd);
return 0;
}
+ case WM_SYSCOMMAND:
+ {
+ switch(wParam)
+ {
+ case SC_SCREENSAVE:
+ case SC_MONITORPOWER:
+ mp_msg(MSGT_VO, MSGL_V ,"<vo_directx><INFO>killing screensaver\n" );
+ return 0;
+ }
+ break;
+ }
case WM_PAINT:
{
PAINTSTRUCT ps;
@@ -722,17 +733,6 @@ static LRESULT CALLBACK EventProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM
case WM_CHAR:
mplayer_put_key(wParam);
break;
- case WM_SYSCOMMAND:
- {
- switch(wParam)
- {
- case SC_SCREENSAVE:
- case SC_MONITORPOWER:
- mp_msg(MSGT_VO, MSGL_V ,"<vo_directx><INFO>killing screensaver\n" );
- return 0;
- }
- break;
- }
case WM_COPYDATA:
{
if(lParam)