Ignore:
Timestamp:
Oct 31, 2006, 2:29:48 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Got rid of cucul_ansi_to_attr() and cucul_argb_to_attr() and restored cucul_set_color() and cucul_set_truecolor() under the new names cucul_set_color_ansi() and cucul_set_color_argb().
  • Renamed cucul_get_color_name() into cucul_ansi_to_str().
Location:
libcaca/trunk/caca
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca0.h

    r1257 r1267  
    131131
    132132#define caca_set_color(x, y) \
    133     (__caca0_fg = (x), __caca0_bg = (y), \
    134      cucul_set_attr(__caca0_cv, cucul_ansi_to_attr(x, y)))
     133    (__caca0_fg = (x), __caca0_bg = (y), cucul_set_color_ansi(__caca0_cv, x, y))
    135134#define caca_get_fg_color() __caca0_fg
    136135#define caca_get_bg_color() __caca0_bg
    137 #define caca_get_color_name cucul_get_color_name
     136#define caca_get_color_name cucul_ansi_to_str
    138137#define caca_putchar(x, y, c) cucul_putchar(__caca0_cv, x, y, c)
    139138#define caca_putstr(x, y, s) cucul_putstr(__caca0_cv, x, y, s)
  • libcaca/trunk/caca/driver_gl.c

    r1257 r1267  
    513513    /* Allocate a libcucul canvas and print all the glyphs on it */
    514514    cv = cucul_create_canvas(1, b);
    515     cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_WHITE, CUCUL_BLACK));
     515    cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLACK);
    516516
    517517    for(b = 0, i = 0; dp->drv.p->blocks[i + 1]; i += 2)
Note: See TracChangeset for help on using the changeset viewer.