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

/solaris-x11-s11/open-src/app/cmap_compact/sun-src/
H A DcmcNeWSinit.c42 ** <ncolors> is the number of saved colors, and 'cmap_compact_rearrange_scr'
44 ** colors to further reduce colormap flashing with other X11/NeWS
65 XColor *colors; local
67 if (!cmc_read(f, &scr_num, &ncolors, &colors))
72 free((char *)colors);
H A Dcmcshow.c31 static void print_xcolors(XColor *colors, int ncolors);
35 ** Print contents of workspace colors file in human readable form.
55 XColor *colors; local
57 if (!cmc_read(f, &scr_num, &ncolors, &colors))
61 printf("%d saved colors\n", ncolors);
63 print_xcolors(colors, ncolors);
66 free((char *)colors);
72 print_xcolors (XColor *colors, int ncolors) argument
79 for (c = colors; c < colors
[all...]
H A Dcmcinit.c42 XColor *colors)
72 ** May not be able to get as many colors as requested.
76 (void) fprintf(stderr, "Warning: can only allocate %d of the requested %d colors.\n", nc, ncolors);
81 /* Free enough space for workspace colors */
85 /* Allocate the workspace colors */
86 for (c=colors+ncolors-1; c>=colors; c--)
94 ** Tell everybody how many workspace colors there are.
116 cmc_alloc_protected (screen, ncolors, colors)
119 XColor *colors;
39 cmc_alloc( Screen *screen, int ncolors, XColor *colors) argument
167 XColor *colors; local
[all...]
H A Dcmcsave.c74 cmc_record (screen, ncolors, colors)
77 XColor **colors;
167 if (!(*colors = (XColor *) calloc(*ncolors, sizeof(XColor))))
174 for (i=0, c=*colors; i<totalpix; i++) {
179 XQueryColors(DisplayOfScreen(screen), cmap, *colors, *ncolors); local
193 cmc_record_protected (screen, ncolors, colors)
196 XColor **colors;
200 cmc_record(screen, ncolors, colors);
239 XColor *colors; local
246 warning("no colors save
[all...]
H A Dcmcutil.h85 int ncolors, XColor *colors);
87 int *ncolors, XColor **colors);
H A Dcmcutil.c126 XColor *colors)
131 (void)fwrite(colors, sizeof(XColor), ncolors, f);
146 XColor **colors)
154 fatal_error("cannot read number of saved colors");
157 if (!(*colors = (XColor *) malloc(*ncolors * sizeof(XColor))))
160 if (!fread(*colors, sizeof(XColor), *ncolors, f)) {
162 fatal_error("cannot read saved colors");
194 fatal_error("Unrecognized colors file. Expected magic number = %x, \
200 fatal_error("Unrecognized colors file. Expected version number = %x, \
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 DXCrDynCmap.c42 XColor *colors,
84 colors[i].pixel = pixels[i];
85 XQueryColor(dsp, DefaultColormap(dsp, screen), &colors[i]);
88 colors[i].pixel = pixels[i];
89 colors[i].red = *red++ << 8;
90 colors[i].green = *green++ << 8;
91 colors[i].blue = *blue++ << 8;
92 colors[i].flags = DoRed | DoGreen | DoBlue;
94 XStoreColors(dsp, *cmap, colors, ncolors);
37 XCreateDynamicColormap( Display *dsp, int screen, Colormap *cmap, Visual **visual, XColor *colors, int count, u_char *red, u_char *green, u_char *blue) argument
H A Dxcolor.h49 XColor *colors,

Completed in 28 milliseconds