for (i = 0; i < SZT_SCHEMES_NAME; i++) {
found = 0;
if ((1<<i) & inkpot->scheme_bits) {
- fprintf (out, "%s", &TAB_STRINGS[TAB_SCHEMES_NAME[i].string_idx]);
+ fprintf (out, "%s (in)", &TAB_STRINGS[TAB_SCHEMES_NAME[i].string_idx]);
if (i == inkpot->default_scheme_name_idx)
fprintf (out, " (default)");
found++;
}
found = 0;
if (inkpot->scheme_index) {
- fprintf (out, "%s (indexed)", &TAB_STRINGS[inkpot->scheme_index->string_idx]);
+ fprintf (out, "%s (indexed) (in)", &TAB_STRINGS[inkpot->scheme_index->string_idx]);
found++;
}
if (inkpot->out_scheme_index) {
IDX_IXVALUES k, first, last;
IDX_VALUES v;
- fprintf(out, "names:\n");
+ fprintf(out, "names (in):\n");
inkpot_scheme_bits = inkpot->scheme_bits;
if (inkpot_scheme_bits) {
for (i = 0; i < SZT_NAMES; i++) {
inkpot_print_scheme_names(inkpot, scheme_bits, out);
fprintf(out, " ");
inkpot_print_rgba(TAB_VALUES[name->value_idx].rgba, out);
+ if (name->value_idx == inkpot->default_value_idx)
+ fprintf(out, " (default)");
fprintf(out, "\n");
}
}
struct inkpot_s { /* The Ink Pot */
BIT_SCHEMES_NAME
- scheme_bits, /* One bit per inkpot_scheme_name_t,
- *max 32 schemes */
+ scheme_bits, /* One bit per inkpot_scheme_name_t */
out_scheme_bit; /* One scheme only for output. */
IDX_SCHEMES_NAME
value_idx; /* The current color value. */
inkpot_scheme_index_t
- *scheme_index, /* Pointer to the indexed color scheme,
- or NULL. (Only 1 at a time) */
+ *scheme_index, /* Pointer to the indexed color scheme, or NULL. */
*out_scheme_index; /* Indexed output scheme, or NULL */
inkpot_name_t
- *name, /* The most recently resolved color name. */
- *out_name; /* The most recently translated color name. */
+ *name, /* The current color name, or NULL. */
+ *out_name; /* The current translated color name, or NULL. */
};
#endif /* INKPOT_STRUCTS_H */