Ignore:
Timestamp:
Apr 18, 2006, 2:59:07 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed cucul_t into cucul_canvas_t. Eh ouais mon con.
File:
1 edited

Legend:

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

    r777 r810  
    2424{
    2525    /* libcucul context */
    26     cucul_t *qq;
     26    cucul_canvas_t *c;
    2727    cucul_buffer_t *export;
    2828    struct image *i;
     
    3535    }
    3636
    37     qq = cucul_create(0, 0);
    38     if(!qq)
     37    c = cucul_create(0, 0);
     38    if(!c)
    3939    {
    4040        fprintf(stderr, "%s: unable to initialise libcucul\n", argv[0]);
     
    4646    {
    4747        fprintf(stderr, "%s: unable to load %s\n", argv[0], argv[1]);
    48         cucul_free(qq);
     48        cucul_free(c);
    4949        return 1;
    5050    }
     
    5353    lines = cols * i->h * 6 / i->w / 10;
    5454
    55     cucul_set_size(qq, cols, lines);
    56     cucul_clear(qq);
    57     cucul_dither_bitmap(qq, 0, 0, cols - 1, lines - 1, i->dither, i->pixels);
     55    cucul_set_size(c, cols, lines);
     56    cucul_clear(c);
     57    cucul_dither_bitmap(c, 0, 0, cols - 1, lines - 1, i->dither, i->pixels);
    5858
    5959    unload_image(i);
    6060
    61     export = cucul_create_export(qq, "irc");
     61    export = cucul_create_export(c, "irc");
    6262    fwrite(cucul_get_buffer_data(export),
    6363           cucul_get_buffer_size(export), 1, stdout);
    6464    cucul_free_buffer(export);
    6565
    66     cucul_free(qq);
     66    cucul_free(c);
    6767
    6868    return 0;
Note: See TracChangeset for help on using the changeset viewer.