mirror of
https://github.com/mpv-player/mpv
synced 2024-12-20 13:52:10 +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:
parent
47a665f8c9
commit
b18fadfe63
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user