[vlc-commits] direct3d9: use directly the decoder size in a rectangle

Steve Lhomme git at videolan.org
Mon Apr 1 12:03:43 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Mar 22 14:04:53 2019 +0100| [b3e7a56c892d28d803be1b0e56d8e384c5b95c38] | committer: Steve Lhomme

direct3d9: use directly the decoder size in a rectangle

Instead of using the rect_src which has the same values.
(see GetPictureWidth and GetPictureHeight)

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

 modules/video_output/win32/direct3d9.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 40f29d682f..4674d3732d 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -477,8 +477,13 @@ static int Direct3D9ImportPicture(vout_display_t *vd,
 
     /* */
     region->texture = sys->sceneTexture;
-    Direct3D9SetupVertices(region->vertex, &vd->sys->sys.rect_src,
-                           &copy_rect,
+    RECT rect_src = {
+        .left   = 0,
+        .right  = vd->source.i_width,
+        .top    = 0,
+        .bottom = vd->source.i_height,
+    };
+    Direct3D9SetupVertices(region->vertex, &rect_src, &copy_rect,
                            &vd->sys->sys.rect_dest, 255, vd->source.orientation);
     return VLC_SUCCESS;
 }



More information about the vlc-commits mailing list