[vlc-devel] [PATCH 32/41] direct3d9: use directly the decoder size in a rectangle

Steve Lhomme robux4 at ycbcr.xyz
Fri Mar 22 16:14:10 CET 2019


Instead of using the rect_src which has the same values.
---
 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 f20ec56c29..45cb1d041f 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -472,8 +472,13 @@ static int Direct3D9ImportPicture(vout_display_t *vd,
 
     /* */
     region->texture = sys->sceneTexture;
-    Direct3D9SetupVertices(region->vertex, &vd->sys->sys.area.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.area.rect_dest, 255, vd->source.orientation);
     return VLC_SUCCESS;
 }
-- 
2.17.1



More information about the vlc-devel mailing list