[vlc-devel] [PATCH] direct3d11: fix the subpictures position when the video is zoomed
Steve Lhomme
robux4 at gmail.com
Thu Aug 6 14:06:41 CEST 2015
---
modules/video_output/msw/direct3d11.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index 4434396..d0f4ff6 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -1768,7 +1768,7 @@ static int Direct3D11MapSubpicture(vout_display_t *vd, int *subpicture_region_co
float opacity = (float)r->i_alpha / 255.0f;
UpdateQuadPosition(vd, (d3d_quad_t *)quad_picture->p_sys, &dst,
- i_original_width, i_original_height, opacity);
+ video.right - video.left, video.bottom - video.top, opacity);
}
return VLC_SUCCESS;
}
--
2.5.0
More information about the vlc-devel
mailing list