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/test/frames.c

    r1256 r1257  
    4949    {
    5050        cucul_set_canvas_frame(cv, frame);
    51         cucul_set_attr_ansi(cv, CUCUL_COLOR_WHITE, frame, 0);
     51        cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_WHITE, frame));
    5252        cucul_fill_box(cv, 0, 0, 40, 15, ":");
    53         cucul_set_attr_ansi(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE, 0);
     53        cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_WHITE, CUCUL_BLUE));
    5454        cucul_putstr(cv, frame * 5 / 2, frame, "カカ");
    5555    }
     
    6161            cucul_get_canvas_width(cv), cucul_get_canvas_height(cv));
    6262
    63     cucul_set_attr_ansi(cv, CUCUL_COLOR_DEFAULT, CUCUL_COLOR_TRANSPARENT, 0);
     63    cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_DEFAULT, CUCUL_TRANSPARENT));
    6464    dp = caca_create_display(cv);
    6565    caca_set_display_time(dp, 50000);
Note: See TracChangeset for help on using the changeset viewer.