Changeset 1383


Ignore:
Timestamp:
Nov 13, 2006, 12:09:17 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • Fix a bug in cucul_put_attr. This function was simply not working.
File:
1 edited

Legend:

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

    r1362 r1383  
    136136    curattr = cv->attrs + x + y * cv->width;
    137137
    138     if(curattr[0] < 0x00000010)
    139         curattr[0] = (cv->curattr & 0xfffffff0) | curattr[0];
     138    if(attr < 0x00000010)
     139        curattr[0] = (curattr[0] & 0xfffffff0) | attr;
     140    else
     141        curattr[0] = attr;
    140142
    141143    if(x && curchar[0] == CUCUL_MAGIC_FULLWIDTH)
Note: See TracChangeset for help on using the changeset viewer.