[vlc-devel] [PATCH 1/2] Direct3D: set dimensions of the D3D picture region

Felix Abecassis felix.abecassis at gmail.com
Thu Feb 13 18:33:39 CET 2014


---
 modules/video_output/msw/direct3d.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index 22fe56d..b25eb9b 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -314,6 +314,8 @@ static void Prepare(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
 
     d3d_region_t picture_region;
     if (!Direct3DImportPicture(vd, &picture_region, surface)) {
+        picture_region.width = picture->format.i_visible_width;
+        picture_region.height = picture->format.i_visible_height;
         int subpicture_region_count     = 0;
         d3d_region_t *subpicture_region = NULL;
         if (subpicture)
-- 
1.7.10.4




More information about the vlc-devel mailing list