summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/w32_common.c4
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();
}
}