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

    r702 r724  
    5656static void raw_display(caca_t *kk)
    5757{
    58     uint8_t *attr = kk->qq->attr;
     58    uint32_t *attr = kk->qq->attr;
    5959    uint32_t *chars = kk->qq->chars;
    6060    uint32_t w, h;
     
    7171    {
    7272        uint32_t c = *chars++;
    73         uint8_t a = *attr++;
     73        uint32_t a = *attr++;
    7474
    75         fprintf(stdout, "%c%c%c%c%c", (c >> 24), (c >> 16) & 0xff,
    76                                       (c >> 8) & 0xff, c & 0xff, a);
     75        fprintf(stdout, "%c%c%c%c%c%c%c%c",
     76                (c >> 24), (c >> 16) & 0xff, (c >> 8) & 0xff, c & 0xff,
     77                (a >> 24), (a >> 16) & 0xff, (a >> 8) & 0xff, a & 0xff);
    7778    }
    7879
Note: See TracChangeset for help on using the changeset viewer.