Searched defs:ncolors (Results 1 - 7 of 7) sorted by relevance
/solaris-x11-s11/open-src/app/cmap_compact/sun-src/ |
H A D | cmcNeWSinit.c | 37 ** <scr_num> <ncolors> cmap_compact_rearrange_scr 38 ** <scr_num> <ncolors> cmap_compact_rearrange_scr 42 ** <ncolors> is the number of saved colors, and 'cmap_compact_rearrange_scr' 64 int ncolors; local 67 if (!cmc_read(f, &scr_num, &ncolors, &colors)) 70 printf("%d %d cmap_compact_rearrange_scr\n", scr_num, ncolors);
|
H A D | cmcshow.c | 31 static void print_xcolors(XColor *colors, int ncolors); 54 int ncolors; local 57 if (!cmc_read(f, &scr_num, &ncolors, &colors)) 61 printf("%d saved colors\n", ncolors); 63 print_xcolors(colors, ncolors); 72 print_xcolors (XColor *colors, int ncolors) argument 79 for (c = colors; c < colors + ncolors; c++) {
|
H A D | cmcinit.c | 41 int ncolors, 74 nc = MIN(ncolors, total_alloc); 75 if (nc != ncolors) { 76 (void) fprintf(stderr, "Warning: can only allocate %d of the requested %d colors.\n", nc, ncolors); 79 ncolors = nc; 82 nalloc = total_alloc - ncolors; 83 XFreeColors(DisplayOfScreen(screen), cmap, pixels+nalloc, ncolors, 0); local 86 for (c=colors+ncolors-1; c>=colors; c--) 102 ncolors++; 105 ncolors 39 cmc_alloc( Screen *screen, int ncolors, XColor *colors) argument 107 COUNT_PROP_NAME, XA_INTEGER, 32, ncolors, 1); local 166 int ncolors; local [all...] |
H A D | cmcsave.c | 74 cmc_record (screen, ncolors, colors) 76 int *ncolors; 107 *ncolors = totalpix; 125 *ncolors -= nalloc; 146 (*ncolors)--; 153 (*ncolors)--; 157 (*ncolors)--; 167 if (!(*colors = (XColor *) calloc(*ncolors, sizeof(XColor)))) 179 XQueryColors(DisplayOfScreen(screen), cmap, *colors, *ncolors); local 193 cmc_record_protected (screen, ncolors, color 238 int ncolors; local [all...] |
H A D | cmcutil.c | 125 int ncolors, 130 (void)fwrite(&ncolors, sizeof(int), 1, f); 131 (void)fwrite(colors, sizeof(XColor), ncolors, f); 145 int *ncolors, 152 if (!fread(ncolors, sizeof(int), 1, f)) { 157 if (!(*colors = (XColor *) malloc(*ncolors * sizeof(XColor)))) 160 if (!fread(*colors, sizeof(XColor), *ncolors, f)) { 122 cmc_write( FILE *f, int scr_num, int ncolors, XColor *colors) argument 142 cmc_read( FILE *f, int *scr_num, int *ncolors, XColor **colors) argument
|
/solaris-x11-s11/open-src/app/xcolor/sun-src/ |
H A D | XCrDynCmap.c | 51 ncolors, local 66 ncolors = vinfo.colormap_size; 68 if (count > ncolors) 73 pixels, ncolors); 83 for (i = 0; i < ncolors - count; i++) { 87 for (i = ncolors - count; i < ncolors; i++) { 94 XStoreColors(dsp, *cmap, colors, ncolors);
|
/solaris-x11-s11/open-src/lib/DPS/sun-src/libdps/ |
H A D | dpsXcmu.c | 1461 int *ncolors, /* specifies needed sequence length 1475 while (count < *ncolors && i < npixels) { 1492 if (count != *ncolors) { 1493 *ncolors = max; 1458 contiguous( unsigned long pixels[], int npixels, int *ncolors, unsigned long delta, int *first, int *rem) argument
|
Completed in 19 milliseconds