Mercurial > mplayer.hg
changeset 25719:a6cc5f6799cb
Fix the bug where the window would become smaller each time vo_ontop is toggled.
author | reimar |
---|---|
date | Sun, 13 Jan 2008 21:01:30 +0000 |
parents | 8eddf6a9af7f |
children | 333540254bb4 |
files | libvo/w32_common.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/w32_common.c Sun Jan 13 17:52:29 2008 +0000 +++ b/libvo/w32_common.c Sun Jan 13 21:01:30 2008 +0000 @@ -400,9 +400,7 @@ { 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(); } }