[vlc-commits] direct3d11: fix inverted logic for sides clamping issue

Steve Lhomme git at videolan.org
Tue Aug 1 11:26:30 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Aug  1 11:22:49 2017 +0200| [355c645de3951ffbec229dd2863fea6e066b2a49] | committer: Jean-Baptiste Kempf

direct3d11: fix inverted logic for sides clamping issue

Fixes #18631

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 8be74b4866..5bb7f8f551 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2361,9 +2361,9 @@ static void SetupQuadFlat(d3d_vertex_t *dst_data, const RECT *output,
      * will have decoder pixels not mean to be displayed but used for interpolation
      * So we lose the last line that will be partially green */
     if (src_width != dst_width)
-        dst_width -= 1;
+        src_width += 1;
     if (src_height != dst_height)
-        dst_height -= 1;
+        src_height += 1;
 
     float top, bottom, left, right;
     top    =  (float)MidY / (float)(MidY - 2*dst_y);



More information about the vlc-commits mailing list