Commit 355c645d authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d11: fix inverted logic for sides clamping issue

Fixes #18631
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 6ea5326e
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment