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

    r1220 r1256  
    116116        cucul_free_dither(dither);
    117117
    118         cucul_set_color(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLACK);
     118        cucul_set_attr_ansi(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLACK, 0);
    119119        cucul_draw_thin_box(cv, 0, 0, WIDTH - 1, HEIGHT - 1);
    120120
    121         cucul_set_color(cv, CUCUL_COLOR_BLACK, CUCUL_COLOR_WHITE);
     121        cucul_set_attr_ansi(cv, CUCUL_COLOR_BLACK, CUCUL_COLOR_WHITE, 0);
    122122        cucul_fill_ellipse(cv, WIDTH / 2, HEIGHT / 2,
    123123                               WIDTH / 4, HEIGHT / 4, " ");
     
    127127        cucul_putstr(cv, WIDTH / 2 - 7, HEIGHT / 2 + 2, "äβç ░▒▓█▓▒░ ΔЗҒ");
    128128
    129         cucul_set_color(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_LIGHTBLUE);
     129        cucul_set_attr_ansi(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_LIGHTBLUE, 0);
    130130        cucul_putstr(cv, WIDTH / 2 - 7, HEIGHT / 2, "    LIBCACA    ");
    131131
    132132        for(x = 0; x < 16; x++)
    133133        {
    134             cucul_set_truecolor(cv, 0xff00 | x, 0xf00f | (x << 4));
     134            cucul_set_attr_argb(cv, 0xff00 | x, 0xf00f | (x << 4), 0);
    135135            cucul_putstr(cv, WIDTH / 2 - 7 + x, HEIGHT / 2 + 5, "#");
    136136        }
Note: See TracChangeset for help on using the changeset viewer.