Ignore:
Timestamp:
Oct 29, 2006, 9:54:51 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of cucul_set_attr_ansi() and cucul_set_attr_argb and merge the functionality into cucul_set_attr().
  • Add cucul_ansi_to_attr() and cucul_argb_to_attr().
  • Rename CUCUL_COLOR_* to CUCUL_*.
File:
1 edited

Legend:

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

    r1254 r1257  
    223223            if(fgcolor == bgcolor)
    224224            {
    225                 if(fgcolor == CUCUL_COLOR_BLACK)
    226                     fgcolor = CUCUL_COLOR_WHITE;
    227                 else if(fgcolor == CUCUL_COLOR_WHITE
    228                          || fgcolor <= CUCUL_COLOR_LIGHTGRAY)
    229                     fgcolor = CUCUL_COLOR_BLACK;
     225                if(fgcolor == CUCUL_BLACK)
     226                    fgcolor = CUCUL_WHITE;
     227                else if(fgcolor == CUCUL_WHITE
     228                         || fgcolor <= CUCUL_LIGHTGRAY)
     229                    fgcolor = CUCUL_BLACK;
    230230                else
    231                     fgcolor = CUCUL_COLOR_WHITE;
     231                    fgcolor = CUCUL_WHITE;
    232232                SLsmg_set_color(slang_assoc[fgcolor + 16 * bgcolor]);
    233233                SLsmg_write_char(' ');
Note: See TracChangeset for help on using the changeset viewer.