checking math again
This commit is contained in:
parent
962f13dc1a
commit
406c4fd85d
|
@ -79,7 +79,7 @@ static BOOL line_clip(PINT32 output, INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT
|
|||
int term1 = y2 - y1;
|
||||
int term2 = xmin - x1;
|
||||
int term3 = x2 - x1;
|
||||
Log(LDEBUG, "term1=%d term2=%d term3=%d", term1 >> 16, term2 >> 16, term3 >> 16);
|
||||
Log(LDEBUG, "term1=%d term2=%d term3=%d i1=%d i2=%d", term1 >> 16, term2 >> 16, term3 >> 16, (term1 * term2) >> 16, (term2 / term3) >> 16);
|
||||
tmp = (y2 - y1) * ((xmin - x1) / (x2 - x1));
|
||||
y1 -= tmp;
|
||||
x1 = xmin;
|
||||
|
|
Loading…
Reference in New Issue
Block a user