Lines Matching refs:maxdim
667 static int clip_1d(int *x0, int *y0, int *x1, int *y1, int maxdim) { in clip_1d() argument
679 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()
703 *x1 = maxdim; in clip_1d()