[MPlayer-cvslog] r33894 - trunk/libvo/vo_directx.c

reimar subversion at mplayerhq.hu
Sun Jul 24 19:16:44 CEST 2011


Author: reimar
Date: Sun Jul 24 19:16:43 2011
New Revision: 33894

Log:
Restore hunk disabling overlay when the Window is minimized.

This was accidentally removed in r33657.
Fixes bug 1950.

Modified:
   trunk/libvo/vo_directx.c

Modified: trunk/libvo/vo_directx.c
==============================================================================
--- trunk/libvo/vo_directx.c	Sat Jul 23 21:33:08 2011	(r33893)
+++ trunk/libvo/vo_directx.c	Sun Jul 24 19:16:43 2011	(r33894)
@@ -488,6 +488,12 @@ static uint32_t Directx_ManageDisplay(vo
     rd.right=rd.left+width;
     rd.bottom=rd.top+height;
 
+      if(!nooverlay && (!width || !height)){
+	    /*window is minimized*/
+	    ddrval = g_lpddsOverlay->lpVtbl->UpdateOverlay(g_lpddsOverlay,NULL, g_lpddsPrimary, NULL, DDOVER_HIDE, NULL);
+	    return 0;
+	  }
+
 	/*ok, let's workaround some overlay limitations*/
 	if(!nooverlay)
 	{


More information about the MPlayer-cvslog mailing list