Searched defs:colors (Results 1 - 6 of 6) sorted by relevance
/solaris-x11-s12/open-src/app/cmap_compact/sun-src/ |
H A D | cmcNeWSinit.c | 42 ** <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 D | cmcshow.c | 31 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 D | cmcinit.c | 42 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. 119 XColor *colors) 122 cmc_alloc(screen, ncolors, colors); 39 cmc_alloc( Screen *screen, int ncolors, XColor *colors) argument 116 cmc_alloc_protected( Screen *screen, int ncolors, XColor *colors) argument 166 XColor *colors; local [all...] |
H A D | cmcsave.c | 77 XColor **colors) 166 if (!(*colors = (XColor *) calloc(*ncolors, sizeof(XColor)))) 173 for (i=0, c=*colors; i<totalpix; i++) { 178 XQueryColors(DisplayOfScreen(screen), cmap, *colors, *ncolors); local 195 XColor **colors) 198 cmc_record(screen, ncolors, colors); 236 XColor *colors; local 243 warning("no colors saved for screen %d", scr_num ); 251 ** These will be considered the "workspace colors." 253 cmc_record_protected(screen, &ncolors, &colors); 74 cmc_record( Screen *screen, int *ncolors, XColor **colors) argument 192 cmc_record_protected( Screen *screen, int *ncolors, XColor **colors) argument [all...] |
H A D | cmcutil.c | 122 XColor *colors) 127 (void)fwrite(colors, sizeof(XColor), ncolors, f); 142 XColor **colors) 150 fatal_error("cannot read number of saved colors"); 153 if (!(*colors = (XColor *) malloc(*ncolors * sizeof(XColor)))) 156 if (!fread(*colors, sizeof(XColor), *ncolors, f)) { 158 fatal_error("cannot read saved colors"); 190 fatal_error("Unrecognized colors file. Expected magic number = %x, \ 196 fatal_error("Unrecognized colors file. Expected version number = %x, \ 118 cmc_write( FILE *f, int scr_num, int ncolors, XColor *colors) argument 138 cmc_read( FILE *f, int *scr_num, int *ncolors, XColor **colors) argument
|
/solaris-x11-s12/open-src/app/xcolor/sun-src/ |
H A D | XCrDynCmap.c | 42 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
|
Completed in 715 milliseconds