[MPlayer-cvslog] r25747 - trunk/libvo/w32_common.c

reimar subversion at mplayerhq.hu
Sun Jan 13 22:01:30 CET 2008


Author: reimar
Date: Sun Jan 13 22:01:30 2008
New Revision: 25747

Log:
Fix the bug where the window would become smaller each time vo_ontop is toggled.

Modified:
   trunk/libvo/w32_common.c

Modified: trunk/libvo/w32_common.c
==============================================================================
--- trunk/libvo/w32_common.c	(original)
+++ trunk/libvo/w32_common.c	Sun Jan 13 22:01:30 2008
@@ -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();
     }
 }
 



More information about the MPlayer-cvslog mailing list