diff options
author | joey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-11-11 13:22:01 +0000 |
---|---|---|
committer | joey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-11-11 13:22:01 +0000 |
commit | 370d1d14cf925c7379dd465a5629b89d6df4ac24 (patch) | |
tree | 6fb8a4f971ff664ea341b33548fc4c1a98d9143b /libvo/vo_directx.c | |
parent | 35d096244484436649fc973a4698a33badd0c693 (diff) | |
download | mpv-370d1d14cf925c7379dd465a5629b89d6df4ac24.tar.bz2 mpv-370d1d14cf925c7379dd465a5629b89d6df4ac24.tar.xz |
Intercept maximize event and go into fullscreen mode.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16974 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_directx.c')
-rw-r--r-- | libvo/vo_directx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c index ada591d483..d6150d5ce1 100644 --- a/libvo/vo_directx.c +++ b/libvo/vo_directx.c @@ -914,6 +914,9 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l 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; } |