Changeset 4133 for toilet


Ignore:
Timestamp:
Dec 16, 2009, 1:37:20 AM (10 years ago)
Author:
Sam Hocevar
Message:

Revert previous fix for deprecated libcaca versions. It's possible we have
a TOIlet release before a libcaca one.

Location:
toilet/trunk
Files:
2 edited

Legend:

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

    r4066 r4133  
    6464
    6565        caca_set_canvas_size(cv, 0, 0);
    66         caca_import_canvas_from_memory(cv, line, strlen(line), "utf8");
     66        caca_import_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_canvas_from_memory(cv, parser, len, "utf8");
     109        caca_import_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_canvas_to_memory(cx->torender, cx->export, &len);
     159    buffer = caca_export_memory(cx->torender, cx->export, &len);
    160160    if(!buffer)
    161161        return -1;
  • toilet/trunk/tools/caca2tlf.c

    r2988 r4133  
    171171{
    172172    void *buf;
    173     unsigned long int len;
     173    size_t len;
    174174    unsigned int x, y, myw, mygw;
    175175    int full = caca_utf32_is_fullwidth(ch);
Note: See TracChangeset for help on using the changeset viewer.