[vlc-commits] Direct3D: set dimensions of the D3D picture region

Felix Abecassis git at videolan.org
Thu Feb 13 19:39:52 CET 2014


vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Thu Feb 13 18:33:39 2014 +0100| [c11fd844e6fbfe1640b7b66a21961de897f16312] | committer: Jean-Baptiste Kempf

Direct3D: set dimensions of the D3D picture region

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c11fd844e6fbfe1640b7b66a21961de897f16312
---

 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 e80cbf7..7b31e90 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)



More information about the vlc-commits mailing list