Searched refs:scr_num (Results 1 - 6 of 6) sorted by relevance

/solaris-x11-s11/open-src/app/cmap_compact/sun-src/
H A DcmcNeWSinit.c37 ** <scr_num> <ncolors> cmap_compact_rearrange_scr
38 ** <scr_num> <ncolors> cmap_compact_rearrange_scr
41 ** where <scr_num> is the screen index of each screen,
63 int scr_num; local
67 if (!cmc_read(f, &scr_num, &ncolors, &colors))
70 printf("%d %d cmap_compact_rearrange_scr\n", scr_num, ncolors);
H A Dcmcinit.c165 int scr_num; local
169 if (!cmc_read(f, &scr_num, &ncolors, &colors))
173 if (scr_num >= ScreenCount(dpy)) {
174 warning("Warning: cannot allocated saved colors for screen %d because\nthe display no longer has this many screens\n", scr_num);
177 screen = ScreenOfDisplay(dpy, scr_num);
185 warning("default visual for screen %d is no longer dynamic indexed\nsaved colors not allocated for screen %d", scr_num, scr_num);
H A Dcmcsave.c214 register int scr_num; local
236 for (scr_num = 0; scr_num < ScreenCount(dpy); scr_num++) {
237 Screen *screen = ScreenOfDisplay(dpy, scr_num);
245 scr_num);
246 warning("no colors saved for screen %d", scr_num );
259 if (!cmc_write(f, scr_num, ncolors, colors))
H A Dcmcshow.c53 int scr_num; local
57 if (!cmc_read(f, &scr_num, &ncolors, &colors))
60 printf("Screen %s.%d\n", XDisplayName(display_name), scr_num);
H A Dcmcutil.h84 extern int cmc_write(FILE *f, int scr_num,
86 extern int cmc_read(FILE *f, int *scr_num,
H A Dcmcutil.c124 int scr_num,
129 (void)fwrite(&scr_num, sizeof(int), 1, f);
144 int *scr_num,
149 if (!fread(scr_num, sizeof(int), 1, 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

Completed in 13 milliseconds