Ignore:
Timestamp:
Oct 29, 2006, 9:54:51 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of cucul_set_attr_ansi() and cucul_set_attr_argb and merge the functionality into cucul_set_attr().
  • Add cucul_ansi_to_attr() and cucul_argb_to_attr().
  • Rename CUCUL_COLOR_* to CUCUL_*.
File:
1 edited

Legend:

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

    r1256 r1257  
    2828unsigned int points[] =
    2929{
    30     CUCUL_COLOR_BLACK,
    31     CUCUL_COLOR_DARKGRAY,
    32     CUCUL_COLOR_LIGHTGRAY,
    33     CUCUL_COLOR_WHITE,
    34     CUCUL_COLOR_RED,
    35     CUCUL_COLOR_LIGHTRED
     30    CUCUL_BLACK, CUCUL_DARKGRAY, CUCUL_LIGHTGRAY,
     31    CUCUL_WHITE, CUCUL_RED, CUCUL_LIGHTRED
    3632};
    3733
     
    121117        else
    122118            ch = density[dista * 2 * 13 / (dista + distb)];
    123         cucul_set_attr_ansi(cv, points[nearb], points[neara], 0);
     119        cucul_set_attr(cv, cucul_ansi_to_attr(points[nearb], points[neara]));
    124120
    125121        cucul_putchar(cv, x * cucul_get_canvas_width(cv) / 100,
Note: See TracChangeset for help on using the changeset viewer.