[vlc-devel] [PATCH] direct3d9: only stretch the visible area to fill the displayed texture

Jean-Baptiste Kempf jb at videolan.org
Tue Apr 21 19:02:53 CEST 2015


On 20 Apr, Steve Lhomme wrote :
> ---
>  modules/video_output/msw/direct3d9.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/modules/video_output/msw/direct3d9.c b/modules/video_output/msw/direct3d9.c
> index 93f2e07..db96275 100644
> --- a/modules/video_output/msw/direct3d9.c
> +++ b/modules/video_output/msw/direct3d9.c
> @@ -1481,7 +1481,12 @@ static int Direct3D9ImportPicture(vout_display_t *vd,
>  
>      /* Copy picture surface into texture surface
>       * color space conversion happen here */
> -    hr = IDirect3DDevice9_StretchRect(sys->d3ddev, source, NULL, destination, NULL, D3DTEXF_LINEAR);
> +    RECT cropSource;
> +    cropSource.left = 0;
> +    cropSource.top = 0;

not vd->fmt.i_x_offset and i_y_offset ?

With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list