mirror of https://github.com/mpv-player/mpv
Fix the bug where the window would become smaller each time vo_ontop is toggled.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25747 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ecbdc3f41b
commit
058d1f0886
|
@ -400,9 +400,7 @@ void vo_w32_ontop( void )
|
|||
{
|
||||
vo_ontop = !vo_ontop;
|
||||
if (!vo_fs) {
|
||||
HWND layer = HWND_NOTOPMOST;
|
||||
if (vo_ontop) layer = HWND_TOPMOST;
|
||||
SetWindowPos(vo_window, layer, (vo_screenwidth - vo_dwidth) / 2, (vo_screenheight - vo_dheight) / 2, vo_dwidth, vo_dheight, SWP_SHOWWINDOW);
|
||||
createRenderingContext();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue