Changeset 4066 for toilet


Ignore:
Timestamp:
Nov 30, 2009, 1:47:13 AM (10 years ago)
Author:
Sam Hocevar
Message:

Fix deprecated libcaca calls.

File:
1 edited

Legend:

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

    r2988 r4066  
    6464
    6565        caca_set_canvas_size(cv, 0, 0);
    66         caca_import_memory(cv, line, strlen(line), "utf8");
     66        caca_import_canvas_from_memory(cv, line, strlen(line), "utf8");
    6767        for(i = 0; i < caca_get_canvas_width(cv); i++)
    6868        {
     
    107107
    108108        caca_set_canvas_size(cv, 0, 0);
    109         caca_import_memory(cv, parser, len, "utf8");
     109        caca_import_canvas_from_memory(cv, parser, len, "utf8");
    110110        for(i = 0; i < caca_get_canvas_width(cv); i++)
    111111        {
     
    147147static int render_flush(context_t *cx)
    148148{
    149     unsigned long int len;
     149    size_t len;
    150150    void *buffer;
    151151
     
    157157
    158158    /* Output line */
    159     buffer = caca_export_memory(cx->torender, cx->export, &len);
     159    buffer = caca_export_canvas_to_memory(cx->torender, cx->export, &len);
    160160    if(!buffer)
    161161        return -1;
Note: See TracChangeset for help on using the changeset viewer.