Changeset 4349


Ignore:
Timestamp:
Feb 9, 2010, 1:09:34 AM (7 years ago)
Author:
sam
Message:

Get rid of deprecated libcaca calls now that beta17 is out.

Location:
toilet/trunk
Files:
2 edited

Legend:

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

    r4134 r4349  
    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        {
     
    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;
  • toilet/trunk/tools/caca2tlf.c

    r4305 r4349  
    332332    caca_put_char(out, mygw + 1, gh - 1, '@');
    333333
    334     buf = caca_export_memory(out, "utf8", &len);
     334    buf = caca_export_canvas_to_memory(out, "utf8", &len);
    335335    fwrite(buf, len, 1, stdout);
    336336    free(buf);
Note: See TracChangeset for help on using the changeset viewer.