Ignore:
Timestamp:
Apr 6, 2006, 3:41:56 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Store colour information on 32 bits, for future 12-bit colour support.
File:
1 edited

Legend:

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

    r689 r724  
    191191{
    192192    int x, y;
    193     uint8_t *attr = kk->qq->attr;
     193    uint32_t *attr = kk->qq->attr;
    194194    uint32_t *chars = kk->qq->chars;
    195195    for(y = 0; y < (int)kk->qq->height; y++)
     
    198198        for(x = kk->qq->width; x--; )
    199199        {
    200             attrset(kk->drv.p->attr[*attr++]);
     200            attrset(kk->drv.p->attr[_cucul_rgba32_to_ansi8(*attr++)]);
    201201            ncurses_write_utf32(*chars++);
    202202        }
Note: See TracChangeset for help on using the changeset viewer.