Ignore:
Timestamp:
Apr 18, 2006, 5:11:25 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed caca_t into caca_display_t.
  • Renamed canvas handle variables from "c" to "cv". Eh ouais mon gros.
File:
1 edited

Legend:

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

    r810 r811  
    2828    struct stat statbuf;
    2929    caca_event_t ev;
    30     cucul_canvas_t *c;
    31     caca_t *kk;
     30    cucul_canvas_t *cv;
     31    caca_display_t *dp;
    3232    void *buffer;
    3333    int fd;
     
    5454    buffer = malloc(statbuf.st_size);
    5555    read(fd, buffer, statbuf.st_size);
    56     c = cucul_load(buffer, statbuf.st_size);
     56    cv = cucul_load(buffer, statbuf.st_size);
    5757    free(buffer);
    5858
    59     if(!c)
     59    if(!cv)
    6060    {
    6161        fprintf(stderr, "%s: invalid caca file %s.\n", argv[0], argv[1]);
     
    6363    }
    6464
    65     kk = caca_attach(c);
     65    dp = caca_attach(cv);
    6666
    67     caca_display(kk);
     67    caca_display(dp);
    6868
    69     while(caca_get_event(kk, CACA_EVENT_KEY_PRESS, &ev, -1))
     69    while(caca_get_event(dp, CACA_EVENT_KEY_PRESS, &ev, -1))
    7070    {
    7171        if(ev.data.key.ch == CACA_KEY_ESCAPE)
     
    7474
    7575    /* Clean up */
    76     caca_detach(kk);
    77     cucul_free(c);
     76    caca_detach(dp);
     77    cucul_free(cv);
    7878
    7979    return 0;
Note: See TracChangeset for help on using the changeset viewer.