From 22aa682a921a3c1476d2e586348fea96d0289d29 Mon Sep 17 00:00:00 2001 From: Damien Fouilleul Date: Wed, 7 Feb 2007 15:18:58 +0000 Subject: [PATCH] - directx: put the code in the right place ;) --- modules/video_output/directx/directx.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/video_output/directx/directx.c b/modules/video_output/directx/directx.c index 07dac8f637..00c7767280 100644 --- a/modules/video_output/directx/directx.c +++ b/modules/video_output/directx/directx.c @@ -829,6 +829,14 @@ static void Display( vout_thread_t *p_vout, picture_t *p_pic ) msg_Warn( p_vout, "could not blit surface (error %li)", dxresult ); return; } + else + { + /* if set, remove the black brush to avoid flickering in repaint operations */ + if( 0UL != GetClassLong( p_vout->p_sys->hvideownd, GCL_HBRBACKGROUND) ) + { + SetClassLong(p_vout->p_sys->hvideownd, GCL_HBRBACKGROUND, (ULONG)0UL); + } + } } else /* using overlay */ @@ -857,12 +865,6 @@ static void Display( vout_thread_t *p_vout, picture_t *p_pic ) return; } DirectXUnlockSurface( p_vout, p_pic ); - - /* if set, remove the black brush to avoid flickering in repaint operations */ - if( 0UL != GetClassLong( p_vout->p_sys->hvideownd, GCL_HBRBACKGROUND) ) - { - SetClassLong(p_vout->p_sys->hvideownd, GCL_HBRBACKGROUND, (ULONG)0UL); - } } } -- 2.39.5