Ignore:
Timestamp:
Oct 29, 2006, 9:35:46 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Remove cucul_set_color() from the exported API and replaced all calls with cucul_set_attr_ansi(). Old application will still compile (but issue a warning) and run, though.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/colors.c

    r980 r1256  
    3636        return 1;
    3737
    38     cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
     38    cucul_set_attr_ansi(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK, 0);
    3939    cucul_clear_canvas(cv);
    4040    for(i = 0; i < 16; i++)
    4141    {
    42         cucul_set_color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
     42        cucul_set_attr_ansi(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK, 0);
    4343        cucul_printf(cv, 4, i + (i >= 8 ? 4 : 3), "'%cv': %i (%s)",
    4444                     'a' + i, i, cucul_get_color_name(i));
    4545        for(j = 0; j < 16; j++)
    4646        {
    47             cucul_set_color(cv, i, j);
     47            cucul_set_attr_ansi(cv, i, j, 0);
    4848            cucul_putstr(cv, (j >= 8 ? 41 : 40) + j * 2, i + (i >= 8 ? 4 : 3),
    4949                         "Aa");
Note: See TracChangeset for help on using the changeset viewer.