Ignore:
Timestamp:
Feb 17, 2004, 2:53:14 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • configure.ac: + No longer check for ncurses etc., we use caca-config.
  • src/*: + Updated to new libcaca API, mainly caca_get_event() and caca_set_color()

calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk/src/intro.c

    r194 r365  
    3737    int frame = 0;
    3838
    39     while(caca_get_key() == 0)
     39    while(caca_get_event(CACA_EVENT_KEY_PRESS) == 0)
    4040    {
    4141        int i, xo, yo, x[5], y[5];
     
    4848        yo = caca_get_height() / 2;
    4949
    50         caca_set_color(CACA_COLOR_RED);
     50        caca_set_color(CACA_COLOR_RED, CACA_COLOR_BLACK);
    5151        caca_fill_ellipse(xo, yo, 16, 8, '#');
    52         caca_set_color(CACA_COLOR_GREEN);
     52        caca_set_color(CACA_COLOR_GREEN, CACA_COLOR_BLACK);
    5353        caca_draw_thin_ellipse(xo, yo, 16, 8);
    5454
     
    6161        y[4] = y[0];
    6262
    63         caca_set_color(CACA_COLOR_BLACK);
     63        caca_set_color(CACA_COLOR_BLACK, CACA_COLOR_BLACK);
    6464        caca_fill_triangle(x[0], y[0], x[1], y[1], x[2], y[2], ' ');
    6565        caca_fill_triangle(x[0], y[0], x[3], y[3], x[2], y[2], ' ');
    6666        caca_draw_line(x[0], y[0], x[2], y[2], ' ');
    67         caca_set_color(CACA_COLOR_GREEN);
     67        caca_set_color(CACA_COLOR_GREEN, CACA_COLOR_BLACK);
    6868        caca_draw_thin_polyline(x, y, 4);
    6969
Note: See TracChangeset for help on using the changeset viewer.