E_(UpdateRects)( p_vout, VLC_TRUE );
/* create picture pool */
- p_vout->fmt_out.i_chroma = 0;
+ p_vout->output.i_chroma = 0;
i_ret = Direct3DVoutCreatePictures(p_vout, 1);
if( VLC_SUCCESS != i_ret )
{
rect_dest_clipped.right, rect_dest_clipped.bottom );
#endif
+#else /* MODULE_NAME_IS_vout_directx */
+
+ /* AFAIK, there are no clipping constraints in Direct3D, OpenGL and GDI */
+ rect_dest_clipped = rect_dest;
+
+#endif
+
/* the 2 following lines are to fix a bug when clicking on the desktop */
if( (rect_dest_clipped.right - rect_dest_clipped.left)==0 ||
(rect_dest_clipped.bottom - rect_dest_clipped.top)==0 )
SetRectEmpty( &rect_src_clipped );
return;
}
-#else /* MODULE_NAME_IS_vout_directx */
-
- /* AFAIK, there are no clipping constraints in Direct3D, OpenGL and GDI */
- rect_dest_clipped = rect_dest;
-
-#endif
/* src image dimensions */
rect_src.left = 0;