Ignore:
Timestamp:
Oct 31, 2006, 9:17:58 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • Changed cucul_set_attr() so that only setting the style does not change the colour.
File:
1 edited

Legend:

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

    r1264 r1266  
    231231                continue;
    232232
    233             fg = (((attr >> 4) & 0x3fff) == CUCUL_DEFAULT) ?
     233            fg = (((attr >> 4) & 0x3fff) == (CUCUL_DEFAULT | 0x40)) ?
    234234                     0x10 : palette[_cucul_attr_to_ansi4fg(attr)];
    235             bg = (((attr >> 18) & 0x3fff) == CUCUL_TRANSPARENT) ?
     235            bg = (((attr >> 18) & 0x3fff) == (CUCUL_TRANSPARENT | 0x40)) ?
    236236                     0x10 : palette[_cucul_attr_to_ansi4bg(attr)];
    237237
     
    567567                continue;
    568568
    569             if(((attr >> 4) & 0x3fff) == CUCUL_DEFAULT)
     569            if(((attr >> 4) & 0x3fff) == (CUCUL_DEFAULT | 0x40))
    570570                fg = 0x10;
    571571
    572             if(((attr >> 18) & 0x3fff) == CUCUL_TRANSPARENT)
     572            if(((attr >> 18) & 0x3fff) == (CUCUL_TRANSPARENT | 0x40))
    573573                bg = 0x10;
    574574
Note: See TracChangeset for help on using the changeset viewer.