[vlc-devel] [PATCH] direct3d11: fix inverted logic for sides clamping issue
Steve Lhomme
robux4 at videolabs.io
Tue Aug 1 11:22:49 CEST 2017
Fixes #18631
---
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);
--
2.12.1
More information about the vlc-devel
mailing list