diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-13 21:01:30 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-13 21:01:30 +0000 |
commit | 058d1f08866d03d664c60bfcf0b79e49b706c472 (patch) | |
tree | a96aeb498d2e5e21b0ce3f525cd56fb4934d8134 | |
parent | ecbdc3f41b84b14d590b1f1a40aca107a8b85ff2 (diff) |
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
-rw-r--r-- | libvo/w32_common.c | 4 |
1 files changed, 1 insertions, 3 deletions
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(); } } |