]> git.sesse.net Git - vlc/commitdiff
- directx: put the code in the right place ;)
authorDamien Fouilleul <damienf@videolan.org>
Wed, 7 Feb 2007 15:18:58 +0000 (15:18 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Wed, 7 Feb 2007 15:18:58 +0000 (15:18 +0000)
modules/video_output/directx/directx.c

index 07dac8f637822080c6872a5056724ff5b6493d2d..00c77672802c41d01aeebd0e4d97777cb2ce364e 100644 (file)
@@ -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);
-        }
     }
 }