Mercurial > mplayer.hg
changeset 33806:8c31fd7b9a08
Restore hunk disabling overlay when the Window is minimized.
This was accidentally removed in r33657.
Fixes bug 1950.
author | reimar |
---|---|
date | Sun, 24 Jul 2011 17:16:43 +0000 |
parents | acca18850841 |
children | fb9eaa0ab770 |
files | libvo/vo_directx.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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) {