Searched refs:maxdim (Results 1 – 1 of 1) sorted by relevance
678 static int clip_1d(int *x0, int *y0, int *x1, int *y1, int maxdim) { in clip_1d() argument690 if (*x1 > maxdim) { in clip_1d()691 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()692 *x1 = maxdim; in clip_1d()696 if (*x0 > maxdim) { /* start of line is right of window - complement of above */ in clip_1d()697 if (*x1 > maxdim) { /* as is the end, so the line misses the window */ in clip_1d()701 *y0 += (int)(m * (maxdim - *x0)); /* adjust so point is on the right boundary */ in clip_1d()702 *x0 = maxdim; in clip_1d()711 if (*x1 > maxdim) { /* other end is outside to the right */ in clip_1d()713 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()[all …]
Completed in 14 milliseconds