From 058d1f08866d03d664c60bfcf0b79e49b706c472 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 13 Jan 2008 21:01:30 +0000 Subject: 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 --- libvo/w32_common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libvo') diff --git a/libvo/w32_common.c b/libvo/w32_common.c index 9712d3af9d..0261871abc 100644 --- a/libvo/w32_common.c +++ b/libvo/w32_common.c @@ -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(); } } -- cgit v1.2.3