summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-15 09:04:24 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-15 09:04:24 +0000
commitb18fadfe634930d53897fabef66f3cec6f3aec65 (patch)
tree1372eb4ea9abd4aeb108784a52550621ae86aeab /libvo
parent47a665f8c9e45cf70c988c3e59f89e5c06e3c625 (diff)
downloadmpv-b18fadfe634930d53897fabef66f3cec6f3aec65.tar.bz2
mpv-b18fadfe634930d53897fabef66f3cec6f3aec65.tar.xz
10l the cpu hog fix broke fullscreenswitching with -wid
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17871 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_directx.c4
1 files changed, 4 insertions, 0 deletions
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;
}