[vlc-devel] [PATCH] direct3d11: fix the subpictures position when the video is zoomed

Steve Lhomme robux4 at gmail.com
Fri Aug 7 09:10:12 CEST 2015


---
replaces https://patches.videolan.org/patch/9673/ with Winstore support
---
 modules/video_output/msw/direct3d11.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index 4434396..c8a6ade 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -1767,8 +1767,14 @@ static int Direct3D11MapSubpicture(vout_display_t *vd, int *subpicture_region_co
 
         float opacity = (float)r->i_alpha / 255.0f;
 
+#if VLC_WINSTORE_APP
+        UpdateQuadPosition(vd, (d3d_quad_t *)quad_picture->p_sys, &dst,
+                           sys->rect_display.right - sys->rect_display.left,
+                           sys->rect_display.bottom - sys->rect_display.top, opacity);
+#else
         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);
+#endif
     }
     return VLC_SUCCESS;
 }
-- 
2.5.0



More information about the vlc-devel mailing list