Ignore:
Timestamp:
Oct 30, 2006, 3:33:46 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Fix IRC and term transparency (again).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/export.c

    r1257 r1262  
    231231                continue;
    232232
    233             fg = (((attr >> 4) & 0x7ffe) == (CUCUL_DEFAULT << 4)) ?
     233            fg = (((attr >> 4) & 0x3fff) == CUCUL_DEFAULT) ?
    234234                     0x10 : palette[_cucul_attr_to_ansi4fg(attr)];
    235             bg = (((attr >> 18) & 0x7ffe) == (CUCUL_TRANSPARENT << 4)) ?
     235            bg = (((attr >> 18) & 0x3fff) == CUCUL_TRANSPARENT) ?
    236236                     0x10 : palette[_cucul_attr_to_ansi4bg(attr)];
    237237
     
    538538                continue;
    539539
    540             if(((attr >> 4) & 0x7ffe) == (CUCUL_DEFAULT << 4))
     540            if(((attr >> 4) & 0x3fff) == CUCUL_DEFAULT)
    541541                fg = 0x10;
    542542
    543             if(((attr >> 18) & 0x7ffe) == (CUCUL_TRANSPARENT << 4))
     543            if(((attr >> 18) & 0x3fff) == CUCUL_TRANSPARENT)
    544544                bg = 0x10;
    545545
Note: See TracChangeset for help on using the changeset viewer.