[vlc-devel] [PATCH] direct3d11: fix cropped SPU rendering
Pierre Lamot
pierre at videolabs.io
Fri Mar 23 09:26:41 CET 2018
fix: #20109
---
modules/video_output/win32/direct3d11.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index ec6fee3c2a..c4f8cc16a2 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -3110,9 +3110,9 @@ static int Direct3D11MapSubpicture(vout_display_t *vd, int *subpicture_region_co
d3dquad->i_height = r->fmt.i_height;
RECT output;
output.left = r->fmt.i_x_offset;
- output.right = r->fmt.i_x_offset + r->fmt.i_width;
+ output.right = r->fmt.i_x_offset + r->fmt.i_visible_width;
output.top = r->fmt.i_y_offset;
- output.bottom = r->fmt.i_y_offset + r->fmt.i_height;
+ output.bottom = r->fmt.i_y_offset + r->fmt.i_visible_height;
err = SetupQuad( vd, &r->fmt, d3dquad, &output,
sys->d3dregion_format, sys->pSPUPixelShader,
--
2.14.1
More information about the vlc-devel
mailing list