direct3d11: fix inverted logic for sides clamping issue
authorSteve Lhomme <robUx4@videolabs.io>
Tue, 1 Aug 2017 09:22:49 +0000 (11:22 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 1 Aug 2017 09:26:27 +0000 (11:26 +0200)
Fixes #18631

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_output/win32/direct3d11.c

index 8be74b4..5bb7f8f 100644 (file)
@@ -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);