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

/PHP_TRUNK/ext/gd/libgd/
H A Dgd.c671 static int clip_1d(int *x0, int *y0, int *x1, int *y1, int maxdim) { argument
683 if (*x1 > maxdim) {
684 *y1 += (int)(m * (maxdim - *x1));
685 *x1 = maxdim;
689 if (*x0 > maxdim) { /* start of line is right of window - complement of above */
690 if (*x1 > maxdim) { /* as is the end, so the line misses the window */
694 *y0 += (int)(m * (maxdim - *x0)); /* adjust so point is on the right boundary */
695 *x0 = maxdim;
704 if (*x1 > maxdim) { /* other end is outside to the right */
706 *y1 += (int)(m * (maxdim
[all...]

Completed in 5 milliseconds