From 370d1d14cf925c7379dd465a5629b89d6df4ac24 Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 11 Nov 2005 13:22:01 +0000 Subject: Intercept maximize event and go into fullscreen mode. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16974 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_directx.c | 3 +++ 1 file changed, 3 insertions(+) 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 @@ -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 ,"killing screensaver\n" ); + return 0; + case SC_MAXIMIZE: + if (!vo_fs) control(VOCTRL_FULLSCREEN, NULL); return 0; } break; -- cgit v1.2.3