# HG changeset patch # User faust3 # Date 1142413464 0 # Node ID d5971cc55b39a7363265079ef270e33d34226c91 # Parent 9e1b5526b0da8d7d168a72231d049653207ac3ba 10l the cpu hog fix broke fullscreenswitching with -wid diff -r 9e1b5526b0da -r d5971cc55b39 libvo/vo_directx.c --- a/libvo/vo_directx.c Tue Mar 14 23:33:37 2006 +0000 +++ b/libvo/vo_directx.c Wed Mar 15 09:04:24 2006 +0000 @@ -1519,6 +1519,7 @@ 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 @@ { 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 @@ { 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 @@ ShowWindow(hWndFS,SW_HIDE); ShowWindow(hWnd,SW_SHOW); } + last_rect.left = 0xDEADC0DE; // reset window position cache Directx_ManageDisplay(); break; }