Ignore:
Timestamp:
Nov 12, 2006, 9:37:58 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Now that libcaca 0.99.beta10 is out, we can switch to the new API.
File:
1 edited

Legend:

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

    r1318 r1376  
    108108static int render_flush(context_t *cx)
    109109{
    110     cucul_buffer_t *buffer;
     110    unsigned long int len;
     111    void *buffer;
    111112
    112113    /* Flush current line */
     
    119120
    120121    /* Output line */
    121     buffer = cucul_export_canvas(cx->torender, cx->export);
     122    buffer = cucul_export_memory(cx->torender, cx->export, &len);
    122123    if(!buffer)
    123124        return -1;
    124     fwrite(cucul_get_buffer_data(buffer),
    125            cucul_get_buffer_size(buffer), 1, stdout);
    126     cucul_free_buffer(buffer);
     125    fwrite(buffer, len, 1, stdout);
     126    free(buffer);
    127127    cucul_free_canvas(cx->torender);
    128128
Note: See TracChangeset for help on using the changeset viewer.