Searched refs:maxdim (Results 1 - 1 of 1) sorted by relevance

/PHP_TRUNK/ext/gd/libgd/
H A Dgd.c669 static int clip_1d(int *x0, int *y0, int *x1, int *y1, int maxdim) { argument
681 if (*x1 > maxdim) {
682 *y1 += (int)(m * (maxdim - *x1));
683 *x1 = maxdim;
687 if (*x0 > maxdim) { /* start of line is right of window - complement of above */
688 if (*x1 > maxdim) { /* as is the end, so the line misses the window */
692 *y0 += (int)(m * (maxdim - *x0)); /* adjust so point is on the right boundary */
693 *x0 = maxdim;
702 if (*x1 > maxdim) { /* other end is outside to the right */
704 *y1 += (int)(m * (maxdim
[all...]

Completed in 5 milliseconds