Ignore:
Timestamp:
Apr 18, 2006, 5:54:33 PM (15 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/cacamoir.c

    r811 r813  
    4343    int i, x, y, frame = 0, pause = 0;
    4444
    45     cv = cucul_create(0, 0);
     45    cv = cucul_create_canvas(0, 0);
    4646    if(!cv)
    4747        return 1;
     
    108108paused:
    109109        cucul_dither_bitmap(cv, 0, 0,
    110                             cucul_get_width(cv) - 1, cucul_get_height(cv) - 1,
     110                            cucul_get_canvas_width(cv) - 1,
     111                            cucul_get_canvas_height(cv) - 1,
    111112                            dither, screen);
    112113        cucul_set_color(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
    113         cucul_putstr(cv, cucul_get_width(cv) - 30, cucul_get_height(cv) - 2,
    114                      " -=[ Powered by libcaca ]=- ");
     114        cucul_putstr(cv, cucul_get_canvas_width(cv) - 30,
     115                         cucul_get_canvas_height(cv) - 2,
     116                         " -=[ Powered by libcaca ]=- ");
    115117        caca_display(dp);
    116118    }
     
    119121    cucul_free_dither(dither);
    120122    caca_detach(dp);
    121     cucul_free(cv);
     123    cucul_free_canvas(cv);
    122124
    123125    return 0;
Note: See TracChangeset for help on using the changeset viewer.