Searched refs:maxdim (Results 1 – 1 of 1) sorted by relevance
714 static int clip_1d(int *x0, int *y0, int *x1, int *y1, int maxdim) { in clip_1d() argument726 if (*x1 > maxdim) { in clip_1d()727 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()728 *x1 = maxdim; in clip_1d()732 if (*x0 > maxdim) { /* start of line is right of window - complement of above */ in clip_1d()733 if (*x1 > maxdim) { /* as is the end, so the line misses the window */ in clip_1d()737 *y0 += (int)(m * (maxdim - *x0)); /* adjust so point is on the right boundary */ in clip_1d()738 *x0 = maxdim; in clip_1d()747 if (*x1 > maxdim) { /* other end is outside to the right */ in clip_1d()749 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()[all …]
Completed in 13 milliseconds