Searched refs:max_colors (Results 1 - 12 of 12) sorted by relevance

/macosx-10.10.1/ncurses-44/ncurses/test/
H A Ddots.c113 if (max_colors > 1) {
117 max_colors = -1;
130 if (max_colors > 0) {
131 z = (int) (ranf() * max_colors);
H A Ddots_mvcur.c116 if (max_colors > 1) {
120 max_colors = -1;
137 if (max_colors > 0) {
138 z = (int) (ranf() * max_colors);
H A Dncurses.c149 #undef max_colors macro
150 static int max_colors; /* the actual number of colors we'll use */ variable
2305 for (i = 0; i < max_colors; i++)
2319 && (i < max_colors); i++) {
2380 if (current < (max_colors - 1))
2388 current = (current == 0 ? (max_colors - 1) : current - 1);
2393 current = (current == (max_colors - 1) ? 0 : current + 1);
2465 if (current >= max_colors)
2466 current = max_colors - 1;
6389 #define okCOLOR(n) ((n) >= 0 && (n) < max_colors)
[all...]
/macosx-10.10.1/ncurses-44/ncurses/ncurses/base/
H A Dlib_color.c74 #define OkColorHi(n) (((n) < COLORS) && ((n) < max_colors))
257 if (max_pairs > 0 && max_colors > 0) {
259 SP->_color_count = max_colors;
262 COLORS = max_colors;
268 max_colors)) != 0) {
457 returnCode((VALID_NUMERIC(max_colors) && VALID_NUMERIC(max_pairs)
H A Dlib_set_term.c367 SP->_default_fg = (fg >= 0 && fg < max_colors) ? fg : C_MASK;
369 SP->_default_bg = (bg >= 0 && bg < max_colors) ? bg : C_MASK;
393 if (SP->_default_fg >= max_colors) {
398 SP->_default_fg %= max_colors;
401 if (SP->_default_bg >= max_colors) {
406 SP->_default_bg %= max_colors;
/macosx-10.10.1/tcl-105/tcl_ext/tkimg/tkimg/compat/libjpeg/
H A Djquant1.c192 int max_colors = cinfo->desired_number_of_colors; local
198 /* We can allocate at least the nc'th root of max_colors per component. */
199 /* Compute floor(nc'th root of max_colors). */
206 } while (temp <= (long) max_colors); /* repeat till iroot exceeds root */
220 * exceeding max_colors, though we know not all can be incremented.
232 if (temp > (long) max_colors)
/macosx-10.10.1/ncurses-44/ncurses/progs/
H A Dtic.c864 if ((max_colors > 0) != (max_pairs > 0)
865 || ((max_colors > max_pairs) && (initialize_pair == 0)))
866 _nc_warning("inconsistent values for max_colors (%d) and max_pairs (%d)",
867 max_colors, max_pairs);
884 if (VALID_NUMERIC(max_colors) && VALID_NUMERIC(max_pairs)
/macosx-10.10.1/ncurses-44/ncurses/include/
H A DCaps.uwin270 max_colors colors num Co - - ----- maximum number of colors on screen
H A DCaps276 max_colors colors num Co - - ----- maximum number of colors on screen
H A DCaps.aix4276 max_colors colors num Co - - ----- maximum number of colors on screen
H A DCaps.hpux11278 max_colors colors num Co - - ----- maximum number of colors on screen
H A DCaps.keys278 max_colors colors num Co - - ----- maximum number of colors on screen

Completed in 166 milliseconds