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_conio.c

    r1218 r1254  
    9898{
    9999    char *screen = dp->drv.p->screen;
    100     uint32_t *attr = dp->cv->attr;
     100    uint32_t *attrs = dp->cv->attrs;
    101101    uint32_t *chars = dp->cv->chars;
    102102    unsigned int n;
     
    108108        {
    109109            *screen++ = '[';
    110             *screen++ = _cucul_argb32_to_ansi8(*attr++);
     110            *screen++ = _cucul_attr_to_ansi8(*attrs++);
    111111            ch = ']';
    112112            chars++;
     
    114114        }
    115115        *screen++ = ch;
    116         *screen++ = _cucul_argb32_to_ansi8(*attr++);
     116        *screen++ = _cucul_attr_to_ansi8(*attrs++);
    117117    }
    118118#   if defined(SCREENUPDATE_IN_PC_H)
Note: See TracChangeset for help on using the changeset viewer.