From 749293fb351cc255e139b4f95ff88ba5de8c5041 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Thu, 18 Aug 2016 13:29:52 +0200 Subject: [PATCH] direct3d9: don't pass structures as values Signed-off-by: Jean-Baptiste Kempf --- modules/video_output/win32/direct3d9.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c index 1f86c705ba..6800e9ab66 100644 --- a/modules/video_output/win32/direct3d9.c +++ b/modules/video_output/win32/direct3d9.c @@ -1535,16 +1535,16 @@ static void orientationVertexOrder(video_orientation_t orientation, int vertex_o } static void Direct3D9SetupVertices(CUSTOMVERTEX *vertices, - const RECT dst, + const RECT *dst, int alpha, video_orientation_t orientation) { /* Vertices of the dst rectangle in the unrotated (clockwise) order. */ const int vertices_coords[4][2] = { - { dst.left, dst.top }, - { dst.right, dst.top }, - { dst.right, dst.bottom }, - { dst.left, dst.bottom }, + { dst->left, dst->top }, + { dst->right, dst->top }, + { dst->right, dst->bottom }, + { dst->left, dst->bottom }, }; /* Compute index remapping necessary to implement the rotation. */ @@ -1615,7 +1615,7 @@ static int Direct3D9ImportPicture(vout_display_t *vd, /* */ region->texture = sys->d3dtex; - Direct3D9SetupVertices(region->vertex, vd->sys->rect_dest_clipped, 255, vd->fmt.orientation); + Direct3D9SetupVertices(region->vertex, &vd->sys->rect_dest_clipped, 255, vd->fmt.orientation); return VLC_SUCCESS; } @@ -1733,7 +1733,7 @@ static void Direct3D9ImportSubpicture(vout_display_t *vd, dst.top = video.top + scale_h * r->i_y, dst.bottom = dst.top + scale_h * r->fmt.i_visible_height, Direct3D9SetupVertices(d3dr->vertex, - dst, subpicture->i_alpha * r->i_alpha / 255, ORIENT_NORMAL); + &dst, subpicture->i_alpha * r->i_alpha / 255, ORIENT_NORMAL); } } -- 2.11.4.GIT