Lines Matching refs:ncolors
46 LFUNC(CreateOldColorTable, int, (XpmColor *ct, unsigned int ncolors,
49 LFUNC(FreeOldColorTable, void, (XpmColor **colorTable, unsigned int ncolors));
55 CreateOldColorTable(ct, ncolors, oldct) in CreateOldColorTable() argument
57 unsigned int ncolors;
63 if (ncolors >= UINT_MAX / sizeof(XpmColor *))
66 colorTable = (XpmColor **) XpmMalloc(ncolors * sizeof(XpmColor *));
71 for (a = 0, color = colorTable; a < ncolors; a++, color++, ct++)
78 FreeOldColorTable(colorTable, ncolors) in FreeOldColorTable() argument
80 unsigned int ncolors;
87 for (a = 0, color = colorTable; a < ncolors; a++, color++) {
103 xpmFreeColorTable(colorTable, ncolors) in xpmFreeColorTable() argument
105 int ncolors;
112 for (a = 0, color = colorTable; a < ncolors; a++, color++) {
169 attributes->ncolors = 0;
197 attributes->ncolors = image->ncolors;
200 image->ncolors = 0;
207 ErrorStatus = CreateOldColorTable(image->colorTable, image->ncolors,
219 attributes->ncolors = 0;
221 attributes->ncolors = image->ncolors;
227 image->ncolors = 0;
269 xpmFreeColorTable(attributes->colorTable, attributes->ncolors);
271 attributes->ncolors = 0;
277 attributes->ncolors);
279 attributes->ncolors = 0;