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
This commit is contained in:
vayne 2006-09-18 23:05:57 +00:00
parent bc996f4dee
commit 6275f005bf
1 changed files with 11 additions and 11 deletions

View File

@ -601,6 +601,17 @@ static LRESULT CALLBACK SubProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
SetForegroundWindow(hWnd); SetForegroundWindow(hWnd);
return 0; 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: case WM_PAINT:
{ {
PAINTSTRUCT ps; PAINTSTRUCT ps;
@ -722,17 +733,6 @@ static LRESULT CALLBACK EventProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM
case WM_CHAR: case WM_CHAR:
mplayer_put_key(wParam); mplayer_put_key(wParam);
break; 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: case WM_COPYDATA:
{ {
if(lParam) if(lParam)