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/transform.c

    r1222 r1256  
    5959    rotate = cucul_create_canvas(70, 6);
    6060
    61     cucul_set_color(normal, CUCUL_COLOR_LIGHTMAGENTA, CUCUL_COLOR_BLACK);
     61    cucul_set_attr_ansi(normal, CUCUL_COLOR_LIGHTMAGENTA, CUCUL_COLOR_BLACK, 0);
    6262    for(i = 0; pig[i]; i++)
    6363        cucul_putstr(normal, 55, i, pig[i]);
    6464
    65     cucul_set_color(normal, CUCUL_COLOR_LIGHTGREEN, CUCUL_COLOR_BLACK);
     65    cucul_set_attr_ansi(normal, CUCUL_COLOR_LIGHTGREEN, CUCUL_COLOR_BLACK, 0);
    6666    for(i = 0; duck[i]; i++)
    6767        cucul_putstr(normal, 30, 1 + i, duck[i]);
    6868
    69     cucul_set_color(normal, CUCUL_COLOR_LIGHTCYAN, CUCUL_COLOR_BLACK);
     69    cucul_set_attr_ansi(normal, CUCUL_COLOR_LIGHTCYAN, CUCUL_COLOR_BLACK, 0);
    7070    cucul_putstr(normal, 1, 1, "hahaha mais vieux porc immonde !! [⽼ ⾗]");
    71     cucul_set_color(normal, CUCUL_COLOR_LIGHTRED, CUCUL_COLOR_BLACK);
     71    cucul_set_attr_ansi(normal, CUCUL_COLOR_LIGHTRED, CUCUL_COLOR_BLACK, 0);
    7272    cucul_putchar(normal, 38, 1, '|');
    7373
    74     cucul_set_color(normal, CUCUL_COLOR_YELLOW, CUCUL_COLOR_BLACK);
     74    cucul_set_attr_ansi(normal, CUCUL_COLOR_YELLOW, CUCUL_COLOR_BLACK, 0);
    7575    cucul_putstr(normal, 4, 2, "\\o\\ \\o| _o/ \\o_ |o/ /o/");
    7676
    77     cucul_set_color(normal, CUCUL_COLOR_WHITE, CUCUL_COLOR_LIGHTRED);
     77    cucul_set_attr_ansi(normal, CUCUL_COLOR_WHITE, CUCUL_COLOR_LIGHTRED, 0);
    7878    cucul_putstr(normal, 7, 3, "▙▘▌▙▘▞▖▞▖▌ ▞▖▌ ▌▌");
    7979    cucul_putstr(normal, 7, 4, "▛▖▌▛▖▚▘▚▘▚▖▚▘▚▖▖▖");
    80     cucul_set_color(normal, CUCUL_COLOR_BLACK, CUCUL_COLOR_LIGHTRED);
     80    cucul_set_attr_ansi(normal, CUCUL_COLOR_BLACK, CUCUL_COLOR_LIGHTRED, 0);
    8181    cucul_putstr(normal, 4, 3, "▓▒░");
    8282    cucul_putstr(normal, 4, 4, "▓▒░");
     
    9595
    9696    /* Blit the transformed canvas onto the main canvas */
    97     cucul_set_color(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
     97    cucul_set_attr_ansi(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE, 0);
    9898    cucul_putstr(cv, 0, 0, "normal");
    9999    cucul_blit(cv, 10, 0, normal, NULL);
Note: See TracChangeset for help on using the changeset viewer.