Lines Matching refs:ncolors
49 int ncolors; member
129 st->ncolors = get_integer_resource (st->dpy, "colors", "Colors"); in halo_init()
130 if (st->ncolors < 2) st->ncolors = 2; in halo_init()
131 if (st->ncolors <= 2) mono_p = True; in halo_init()
136 st->colors = (XColor *) malloc(sizeof(*st->colors) * (st->ncolors+1)); in halo_init()
143 st->colors, &st->ncolors, in halo_init()
147 st->colors, &st->ncolors, in halo_init()
150 if (st->ncolors <= 2) mono_p = True; in halo_init()
161 st->bg_index = st->ncolors / 4; in halo_init()
301 st->fg_index = (st->fg_index + 1) % st->ncolors; in halo_draw()
302 st->bg_index = (st->fg_index + (st->ncolors/2)) % st->ncolors; in halo_draw()
335 if (st->fg_index >= st->ncolors) st->fg_index = 0; in halo_draw()
336 if (st->bg_index >= st->ncolors) st->bg_index = 0; in halo_draw()