[vlc-commits] direct3d11: fix cropped SPU rendering

Pierre Lamot git at videolan.org
Fri Mar 23 09:39:12 CET 2018


vlc/vlc-3.0 | branch: master | Pierre Lamot <pierre at videolabs.io> | Fri Mar 23 09:26:41 2018 +0100| [dd18cdcd8622071b8f0b2f149300858b017ae467] | committer: Jean-Baptiste Kempf

direct3d11: fix cropped SPU rendering

Close #20109

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit a4c8306ece29903fd2fbdf6bf5617f973aa1764a)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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,



More information about the vlc-commits mailing list