hackathon-dev #1

Merged
amy merged 101 commits from hackathon-dev into develop 2019-12-12 13:56:11 -07:00
Showing only changes of commit 406c4fd85d - Show all commits

View File

@ -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;