]> git.sesse.net Git - vlc/commitdiff
Fix an incorect cast warning
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 25 Aug 2009 18:57:37 +0000 (20:57 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 25 Aug 2009 19:05:56 +0000 (21:05 +0200)
modules/video_output/msw/directx.c

index 45205114fc007ae953e4cd801208fe3f89ce235d..94e410b13dbd49c5ee849c9df7cada49395cb25a 100644 (file)
@@ -722,9 +722,9 @@ static void FirstDisplay( vout_thread_t *p_vout, picture_t *p_pic )
 
     if( p_vout->p_sys->b_using_overlay )
     {
+        HBRUSH brush = CreateSolidBrush( p_vout->p_sys->i_rgb_colorkey );
         /* set the colorkey as the backgound brush for the video window */
-        SetClassLongPtr( p_vout->p_sys->hvideownd, GCLP_HBRBACKGROUND,
-                      (LONG_PTR)CreateSolidBrush( p_vout->p_sys->i_rgb_colorkey ) );
+        SetClassLongPtr( p_vout->p_sys->hvideownd, GCLP_HBRBACKGROUND, (LONG_PTR)brush );
     }
     /*
     ** Video window is initially hidden, show it now since we got a