Ignore:
Timestamp:
Jun 15, 2008, 4:46:54 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of all the FIGlet font handling: everything is moving into libcucul.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • toilet/trunk/src/render.c

    r1461 r2414  
    5050    cucul_canvas_t *cv;
    5151    char *line;
    52     unsigned int i, len;
     52    int i, len;
    5353
    5454    /* FIXME: we can't read longer lines */
     
    8181}
    8282
    83 int render_list(context_t *cx, unsigned int argc, char *argv[])
     83int render_list(context_t *cx, int argc, char *argv[])
    8484{
    8585    cucul_canvas_t *cv;
    86     unsigned int i, j, len;
     86    int i, j, len;
    8787    char *parser = NULL;
    8888
     
    130130    render_flush(cx);
    131131
     132    cucul_free_canvas(cv);
     133
    132134    return 0;
    133135}
     
    154156    filter_do(cx);
    155157
    156     cx->lines += cucul_get_canvas_height(cx->torender);
    157 
    158158    /* Output line */
    159     buffer = cucul_export_memory(cx->torender, cx->export, &len);
     159    buffer = cucul_export_memory(cx->cv, cx->export, &len);
    160160    if(!buffer)
    161161        return -1;
    162162    fwrite(buffer, len, 1, stdout);
    163163    free(buffer);
    164     cucul_free_canvas(cx->torender);
    165164
    166165    return 0;
Note: See TracChangeset for help on using the changeset viewer.