Ignore:
Timestamp:
Oct 29, 2006, 1:53:46 AM (13 years ago)
Author:
Sam Hocevar
Message:
  • Use the LSB of alpha and blue components to encode additional flags such as bold or underline. No higher level support for these yet, but at least everything is consistent.
  • Created cucul_set_attr_ansi() and cucul_set_attr_argb() which are bound to replace cucul_set_color() and cucul_set_truecolor().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_ncurses.c

    r1218 r1254  
    197197{
    198198    int x, y;
    199     uint32_t *attr = dp->cv->attr;
     199    uint32_t *attrs = dp->cv->attrs;
    200200    uint32_t *chars = dp->cv->chars;
    201201    for(y = 0; y < (int)dp->cv->height; y++)
     
    204204        for(x = dp->cv->width; x--; )
    205205        {
    206             attrset(dp->drv.p->attr[_cucul_argb32_to_ansi8(*attr++)]);
     206            attrset(dp->drv.p->attr[_cucul_attr_to_ansi8(*attrs++)]);
    207207            ncurses_write_utf32(*chars++);
    208208        }
Note: See TracChangeset for help on using the changeset viewer.