From b18fadfe634930d53897fabef66f3cec6f3aec65 Mon Sep 17 00:00:00 2001 From: faust3 Date: Wed, 15 Mar 2006 09:04:24 +0000 Subject: 10l the cpu hog fix broke fullscreenswitching with -wid git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17871 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_directx.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libvo/vo_directx.c') diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c index f4d94c3629..57603104d7 100644 --- a/libvo/vo_directx.c +++ b/libvo/vo_directx.c @@ -1519,6 +1519,7 @@ static int control(uint32_t request, void *data, ...) ShowWindow(hWnd,SW_HIDE); ShowWindow(hWnd,SW_SHOW); } + last_rect.left = 0xDEADC0DE; // reset window position cache Directx_ManageDisplay(); } return VO_TRUE; @@ -1532,6 +1533,7 @@ static int control(uint32_t request, void *data, ...) { if(vo_ontop) vo_ontop = 0; else vo_ontop = 1; + last_rect.left = 0xDEADC0DE; // reset window position cache Directx_ManageDisplay(); } return VO_TRUE; @@ -1545,6 +1547,7 @@ static int control(uint32_t request, void *data, ...) { if(vo_rootwin) vo_rootwin = 0; else vo_rootwin = 1; + last_rect.left = 0xDEADC0DE; // reset window position cache Directx_ManageDisplay(); } return VO_TRUE; @@ -1569,6 +1572,7 @@ static int control(uint32_t request, void *data, ...) ShowWindow(hWndFS,SW_HIDE); ShowWindow(hWnd,SW_SHOW); } + last_rect.left = 0xDEADC0DE; // reset window position cache Directx_ManageDisplay(); break; } -- cgit v1.2.3