Ignore:
Timestamp:
Oct 29, 2006, 9:35:46 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Remove cucul_set_color() from the exported API and replaced all calls with cucul_set_attr_ansi(). Old application will still compile (but issue a warning) and run, though.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/gamma.c

    r1048 r1256  
    8787
    8888        /* Draw something on the mask */
    89         cucul_set_color(mask, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
     89        cucul_set_attr_ansi(mask, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK, 0);
    9090        cucul_clear_canvas(mask);
    91         cucul_set_color(mask, CUCUL_COLOR_WHITE, CUCUL_COLOR_WHITE);
     91        cucul_set_attr_ansi(mask, CUCUL_COLOR_WHITE, CUCUL_COLOR_WHITE, 0);
    9292        cucul_fill_ellipse(mask, (1.0 + sin(0.05 * (float)x))
    9393                                   * 0.5 * cucul_get_canvas_width(mask),
     
    100100        cucul_blit(cv, 0, 0, cw, mask);
    101101
    102         cucul_set_color(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
     102        cucul_set_attr_ansi(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE, 0);
    103103        cucul_printf(cv, 2, 1,
    104104                     "gamma=%g - use arrows to change, Esc to quit", gam);
Note: See TracChangeset for help on using the changeset viewer.