mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
Intercept maximize event and go into fullscreen mode.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16974 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
35d0962444
commit
370d1d14cf
@ -913,6 +913,9 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
|
||||
case SC_SCREENSAVE:
|
||||
case SC_MONITORPOWER:
|
||||
mp_msg(MSGT_VO, MSGL_V ,"<vo_directx><INFO>killing screensaver\n" );
|
||||
return 0;
|
||||
case SC_MAXIMIZE:
|
||||
if (!vo_fs) control(VOCTRL_FULLSCREEN, NULL);
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user