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

/PHP_TRUNK/ext/gd/
H A Dgd.c3335 int npoints, col, nelem, i; local
3345 npoints = NPOINTS;
3353 if (npoints <= 0) {
3357 if (nelem < npoints * 2) {
3358 php_error_docref(NULL, E_WARNING, "Trying to use %d points in array with only %d points", npoints, nelem/2);
3362 points = (gdPointPtr) safe_emalloc(npoints, sizeof(gdPoint), 0);
3364 for (i = 0; i < npoints; i++) {
3374 gdImageFilledPolygon(im, points, npoints, col);
3376 gdImagePolygon(im, points, npoints, col);

Completed in 8 milliseconds