[NTGDI][POLYTEST] Use newx1 as the lower bound in polyfill line-touch test (#9118)

Bug/typo was introduced in https://github.com/reactos/reactos/commit/5b6d43ab50b88d2ab8fd3d7ebf434173c5768065 (r5619).
This commit is contained in:
Ahmed Arif
2026-06-08 16:42:33 +03:00
committed by GitHub
parent a94352ba48
commit d3ed29ef06
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -612,7 +612,7 @@ POLYGONFILL_FillScanLineWinding(
if ( (newx1 >= x1 && newx1 <= x2)
|| (newx2 >= x1 && newx2 <= x2)
|| (x1 >= newx1 && x1 <= newx2)
|| (x2 >= newx2 && x2 <= newx2)
|| (x2 >= newx1 && x2 <= newx2)
)
{
// yup, just tack it on to our existing line
+1 -1
View File
@@ -475,7 +475,7 @@ POLYGONFILL_FillScanLineWinding(
if ((newx1 >= x1 && newx1 <= x2) ||
(newx2 >= x1 && newx2 <= x2) ||
(x1 >= newx1 && x1 <= newx2) ||
(x2 >= newx2 && x2 <= newx2))
(x2 >= newx1 && x2 <= newx2))
{
// Yup, just tack it on to our existing line
x1 = min(x1,newx1);