1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-20 22:02:59 +00:00

10l the cpu hog fix broke fullscreenswitching with -wid

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17871 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2006-03-15 09:04:24 +00:00
parent 47a665f8c9
commit b18fadfe63

View File

@ -1519,6 +1519,7 @@ static int control(uint32_t request, void *data, ...)
ShowWindow(hWnd,SW_HIDE); ShowWindow(hWnd,SW_HIDE);
ShowWindow(hWnd,SW_SHOW); ShowWindow(hWnd,SW_SHOW);
} }
last_rect.left = 0xDEADC0DE; // reset window position cache
Directx_ManageDisplay(); Directx_ManageDisplay();
} }
return VO_TRUE; return VO_TRUE;
@ -1532,6 +1533,7 @@ static int control(uint32_t request, void *data, ...)
{ {
if(vo_ontop) vo_ontop = 0; if(vo_ontop) vo_ontop = 0;
else vo_ontop = 1; else vo_ontop = 1;
last_rect.left = 0xDEADC0DE; // reset window position cache
Directx_ManageDisplay(); Directx_ManageDisplay();
} }
return VO_TRUE; return VO_TRUE;
@ -1545,6 +1547,7 @@ static int control(uint32_t request, void *data, ...)
{ {
if(vo_rootwin) vo_rootwin = 0; if(vo_rootwin) vo_rootwin = 0;
else vo_rootwin = 1; else vo_rootwin = 1;
last_rect.left = 0xDEADC0DE; // reset window position cache
Directx_ManageDisplay(); Directx_ManageDisplay();
} }
return VO_TRUE; return VO_TRUE;
@ -1569,6 +1572,7 @@ static int control(uint32_t request, void *data, ...)
ShowWindow(hWndFS,SW_HIDE); ShowWindow(hWndFS,SW_HIDE);
ShowWindow(hWnd,SW_SHOW); ShowWindow(hWnd,SW_SHOW);
} }
last_rect.left = 0xDEADC0DE; // reset window position cache
Directx_ManageDisplay(); Directx_ManageDisplay();
break; break;
} }