[vlc-commits] direct3d11: remove write-only i_x/y_offset in d3d_quad_t
Steve Lhomme
git at videolan.org
Fri Aug 4 10:11:39 CEST 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Aug 1 15:01:20 2017 +0200| [355405f3653862f95eee9c663a9d18dd6b288359] | committer: Jean-Baptiste Kempf
direct3d11: remove write-only i_x/y_offset in d3d_quad_t
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=355405f3653862f95eee9c663a9d18dd6b288359
---
modules/video_output/win32/direct3d11.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 5bb7f8f551..3ae3f4bdae 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -99,8 +99,6 @@ typedef struct
UINT PSConstantsCount;
ID3D11PixelShader *d3dpixelShader;
D3D11_VIEWPORT cropViewport;
- unsigned int i_x_offset;
- unsigned int i_y_offset;
unsigned int i_width;
unsigned int i_height;
} d3d_quad_t;
@@ -750,8 +748,6 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned pool_size)
if (AllocateTextures(vd, sys->picQuadConfig, &staging_fmt, 1, textures, true))
goto error;
- sys->picQuad.i_x_offset = staging_fmt.i_x_offset;
- sys->picQuad.i_y_offset = staging_fmt.i_y_offset;
sys->picQuad.i_width = staging_fmt.i_width;
sys->picQuad.i_height = staging_fmt.i_height;
@@ -764,8 +760,6 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned pool_size)
} else
#endif
{
- sys->picQuad.i_x_offset = surface_fmt.i_x_offset;
- sys->picQuad.i_y_offset = surface_fmt.i_y_offset;
sys->picQuad.i_width = surface_fmt.i_width;
sys->picQuad.i_height = surface_fmt.i_height;
@@ -1066,8 +1060,6 @@ static void UpdateSize(vout_display_t *vd)
UpdatePicQuadPosition(vd);
- sys->picQuad.i_x_offset = sys->sys.rect_src.left;
- sys->picQuad.i_y_offset = sys->sys.rect_src.top;
sys->picQuad.i_width = RECTWidth(sys->sys.rect_src);
sys->picQuad.i_height = RECTHeight(sys->sys.rect_src);
UpdateQuadPosition(vd, &sys->picQuad, &sys->sys.rect_src_clipped,
@@ -2906,8 +2898,6 @@ static int Direct3D11MapSubpicture(vout_display_t *vd, int *subpicture_region_co
free(d3dquad);
continue;
}
- d3dquad->i_x_offset = r->fmt.i_x_offset;
- d3dquad->i_y_offset = r->fmt.i_y_offset;
d3dquad->i_width = r->fmt.i_width;
d3dquad->i_height = r->fmt.i_height;
RECT output;
More information about the vlc-commits
mailing list