Lines Matching refs:npixels
174 int npixels; /* number of pixels allocated R/W */
225 if ((npixels = ROmap(dpy, colormap->colormap, pixels,
231 qsort((char *) pixels, npixels, sizeof(unsigned long), compare);
233 if (!contiguous(pixels, npixels, ncolors, delta, &first_index, &remainder))
236 XFreeColors(dpy, colormap->colormap, pixels, npixels,
254 if (! ROorRWcell(dpy, colormap->colormap, pixels, npixels, &color,
267 if (! ROorRWcell(dpy, colormap->colormap, pixels, npixels, &color,
280 if (! ROorRWcell(dpy, colormap->colormap, pixels, npixels, &color,
293 if (! ROorRWcell(dpy, colormap->colormap, pixels, npixels, &color,
310 if (! ROorRWcell(dpy, colormap->colormap, pixels, npixels, &color,
376 contiguous(unsigned long pixels[], int npixels, int ncolors,
379 * npixels - specifies count of alloc'd pixels
390 if (npixels == ncolors) {
394 *rem = npixels - 1;
415 int npixels, XColor *color, unsigned long p)
442 free_cells(dpy, cmap, pixels, npixels, (int)p);
452 int npixels, int p)
455 * npixels - original number allocated
458 /* One of the npixels allocated has already been freed.
461 * then free the pixels following p, there are npixels - p - 1 of them.
464 XFreeColors(dpy, cmap, &(pixels[p+1]), npixels - p - 1, (unsigned long) 0);