Searched refs:maxdim (Results 1 – 1 of 1) sorted by relevance
667 static int clip_1d(int *x0, int *y0, int *x1, int *y1, int maxdim) { in clip_1d() argument679 if (*x1 > maxdim) { in clip_1d()680 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()681 *x1 = maxdim; in clip_1d()685 if (*x0 > maxdim) { /* start of line is right of window - complement of above */ in clip_1d()686 if (*x1 > maxdim) { /* as is the end, so the line misses the window */ in clip_1d()690 *y0 += (int)(m * (maxdim - *x0)); /* adjust so point is on the right boundary */ in clip_1d()691 *x0 = maxdim; in clip_1d()700 if (*x1 > maxdim) { /* other end is outside to the right */ in clip_1d()702 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()[all …]
Completed in 10 milliseconds