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/cucul/dither.c

    r1256 r1257  
    10011001            if(rgba[2] > lum) lum = rgba[2];
    10021002            outfg = outbg;
    1003             outbg = CUCUL_COLOR_BLACK;
     1003            outbg = CUCUL_BLACK;
    10041004
    10051005            ch = lum * dchmax / 0x1000;
     
    10431043
    10441044        /* Now output the character */
    1045         cucul_set_attr_ansi(cv, outfg, outbg, 0);
     1045        cucul_set_attr(cv, cucul_ansi_to_attr(outfg, outbg));
    10461046        cucul_putchar(cv, x, y, outch);
    10471047
     
    13791379
    13801380    /* These ones are constant */
    1381     lookup_colors[0] = CUCUL_COLOR_BLACK;
    1382     lookup_colors[1] = CUCUL_COLOR_DARKGRAY;
    1383     lookup_colors[2] = CUCUL_COLOR_LIGHTGRAY;
    1384     lookup_colors[3] = CUCUL_COLOR_WHITE;
     1381    lookup_colors[0] = CUCUL_BLACK;
     1382    lookup_colors[1] = CUCUL_DARKGRAY;
     1383    lookup_colors[2] = CUCUL_LIGHTGRAY;
     1384    lookup_colors[3] = CUCUL_WHITE;
    13851385
    13861386    /* These ones will be overwritten */
    1387     lookup_colors[4] = CUCUL_COLOR_MAGENTA;
    1388     lookup_colors[5] = CUCUL_COLOR_LIGHTMAGENTA;
    1389     lookup_colors[6] = CUCUL_COLOR_RED;
    1390     lookup_colors[7] = CUCUL_COLOR_LIGHTRED;
     1387    lookup_colors[4] = CUCUL_MAGENTA;
     1388    lookup_colors[5] = CUCUL_LIGHTMAGENTA;
     1389    lookup_colors[6] = CUCUL_RED;
     1390    lookup_colors[7] = CUCUL_LIGHTRED;
    13911391
    13921392    for(v = 0; v < LOOKUP_VAL; v++)
Note: See TracChangeset for help on using the changeset viewer.