# HG changeset patch # User reimar # Date 1200258090 0 # Node ID a6cc5f6799cb59020f873f43b475d9dcaf8f6bd8 # Parent 8eddf6a9af7fd23ba39af35613474ee168754f9f Fix the bug where the window would become smaller each time vo_ontop is toggled. diff -r 8eddf6a9af7f -r a6cc5f6799cb libvo/w32_common.c --- 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(); } }