# HG changeset patch # User joey # Date 1131715321 0 # Node ID 78ac0dd386c0868aacfa5d69137b677f6606e6d3 # Parent 6a1eaca0e6c1e72360ff3be6169045e71f606cfb Intercept maximize event and go into fullscreen mode. diff -r 6a1eaca0e6c1 -r 78ac0dd386c0 libvo/vo_directx.c --- a/libvo/vo_directx.c Fri Nov 11 03:07:01 2005 +0000 +++ b/libvo/vo_directx.c Fri Nov 11 13:22:01 2005 +0000 @@ -914,6 +914,9 @@ 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; }