Ignore:
Timestamp:
Apr 18, 2006, 5:54:33 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed main canvas-related functions so that they have "canvas" in their name, eg. cucul_create() -> cucul_create_canvas() etc.
  • Moved buffer-related functions to cucul/buffer.c.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/img2irc.c

    r811 r813  
    3535    }
    3636
    37     cv = cucul_create(0, 0);
     37    cv = cucul_create_canvas(0, 0);
    3838    if(!cv)
    3939    {
     
    4646    {
    4747        fprintf(stderr, "%s: unable to load %s\n", argv[0], argv[1]);
    48         cucul_free(cv);
     48        cucul_free_canvas(cv);
    4949        return 1;
    5050    }
     
    5353    lines = cols * i->h * 6 / i->w / 10;
    5454
    55     cucul_set_size(cv, cols, lines);
     55    cucul_set_canvas_size(cv, cols, lines);
    5656    cucul_clear(cv);
    5757    cucul_dither_bitmap(cv, 0, 0, cols - 1, lines - 1, i->dither, i->pixels);
     
    6464    cucul_free_buffer(export);
    6565
    66     cucul_free(cv);
     66    cucul_free_canvas(cv);
    6767
    6868    return 0;
Note: See TracChangeset for help on using the changeset viewer.