Ignore:
Timestamp:
Apr 18, 2006, 2:59:07 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed cucul_t into cucul_canvas_t. Eh ouais mon con.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/cacaplay.c

    r777 r810  
    2828    struct stat statbuf;
    2929    caca_event_t ev;
    30     cucul_t *qq;
     30    cucul_canvas_t *c;
    3131    caca_t *kk;
    3232    void *buffer;
     
    5454    buffer = malloc(statbuf.st_size);
    5555    read(fd, buffer, statbuf.st_size);
    56     qq = cucul_load(buffer, statbuf.st_size);
     56    c = cucul_load(buffer, statbuf.st_size);
    5757    free(buffer);
    5858
    59     if(!qq)
     59    if(!c)
    6060    {
    6161        fprintf(stderr, "%s: invalid caca file %s.\n", argv[0], argv[1]);
     
    6363    }
    6464
    65     kk = caca_attach(qq);
     65    kk = caca_attach(c);
    6666
    6767    caca_display(kk);
     
    6969    while(caca_get_event(kk, CACA_EVENT_KEY_PRESS, &ev, -1))
    7070    {
    71         if(ev.data.key.c == CACA_KEY_ESCAPE)
     71        if(ev.data.key.ch == CACA_KEY_ESCAPE)
    7272            break;
    7373    }
     
    7575    /* Clean up */
    7676    caca_detach(kk);
    77     cucul_free(qq);
     77    cucul_free(c);
    7878
    7979    return 0;
Note: See TracChangeset for help on using the changeset viewer.