OK, NOW i think I'm on the right track - re-reverse the signs

This commit is contained in:
Amy Bowersox 2019-12-10 14:36:38 -07:00
parent da9658408a
commit f5cab0010e
1 changed files with 2 additions and 2 deletions

View File

@ -76,14 +76,14 @@ static BOOL line_clip(PINT32 output, INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT
else if (outcode1 & 0x2)
{
tmp = M(y2 - y1, D(xmax - x1, x2 - x1));
y1 -= tmp;
y1 += tmp;
x1 = xmax;
Log(LDEBUG, "clipped against right to point (%d, %d), dy=%d/%d", x1 >> CPX, y1 >> CPX, tmp >> CPX, tmp);
}
else if (outcode1 & 0x1)
{
tmp = M(y2 - y1, D(xmin - x1, x2 - x1));
y1 -= tmp;
y1 += tmp;
x1 = xmin;
Log(LDEBUG, "clipped against left to point (%d, %d), dy=%d/%d", x1 >> CPX, y1 >> CPX, tmp >> CPX, tmp);
}