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

    r1218 r1254  
    116116{
    117117    char *screen = (char *)(intptr_t)0x000b8000;
    118     uint32_t *attr = dp->cv->attr;
     118    uint32_t *attrs = dp->cv->attrs;
    119119    uint32_t *chars = dp->cv->chars;
    120120    int n;
     
    126126        {
    127127            *screen++ = '[';
    128             *screen++ = _cucul_argb32_to_ansi8(*attr++);
     128            *screen++ = _cucul_attr_to_ansi8(*attrs++);
    129129            ch = ']';
    130130            chars++;
     
    132132        }
    133133        *screen++ = ch;
    134         *screen++ = _cucul_argb32_to_ansi8(*attr++);
     134        *screen++ = _cucul_attr_to_ansi8(*attrs++);
    135135    }
    136136}
Note: See TracChangeset for help on using the changeset viewer.