# HG changeset patch # User reimar # Date 1311527803 0 # Node ID 8c31fd7b9a08244ccaa01c16eaa50039e112063d # Parent acca18850841b0ecd807c983b72a908a6e3a414f Restore hunk disabling overlay when the Window is minimized. This was accidentally removed in r33657. Fixes bug 1950. diff -r acca18850841 -r 8c31fd7b9a08 libvo/vo_directx.c --- a/libvo/vo_directx.c Sat Jul 23 19:33:08 2011 +0000 +++ b/libvo/vo_directx.c Sun Jul 24 17:16:43 2011 +0000 @@ -488,6 +488,12 @@ 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) {