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/cacaplas.c

    r811 r813  
    4747    int i, x, y, frame = 0, pause = 0;
    4848
    49     cv = cucul_create(0, 0);
     49    cv = cucul_create_canvas(0, 0);
    5050    if(!cv)
    5151        return 1;
     
    5656    caca_set_delay(dp, 20000);
    5757
    58     c2 = cucul_create(cucul_get_width(cv), cucul_get_height(cv));
    59     mask = cucul_create(cucul_get_width(cv), cucul_get_height(cv));
     58    c2 = cucul_create_canvas(cucul_get_canvas_width(cv),
     59                             cucul_get_canvas_height(cv));
     60    mask = cucul_create_canvas(cucul_get_canvas_width(cv),
     61                               cucul_get_canvas_height(cv));
    6062
    6163    /* Fill various tables */
     
    121123paused:
    122124        cucul_dither_bitmap(cv, 0, 0,
    123                             cucul_get_width(cv) - 1, cucul_get_height(cv) - 1,
     125                            cucul_get_canvas_width(cv) - 1,
     126                            cucul_get_canvas_height(cv) - 1,
    124127                            dither, screen);
    125128
     
    131134
    132135        cucul_set_color(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
    133         cucul_putstr(cv, cucul_get_width(cv) - 30, cucul_get_height(cv) - 2,
    134                      " -=[ Powered by libcaca ]=- ");
     136        cucul_putstr(cv, cucul_get_canvas_width(cv) - 30,
     137                         cucul_get_canvas_height(cv) - 2,
     138                         " -=[ Powered by libcaca ]=- ");
    135139        caca_display(dp);
    136140    }
     
    139143    cucul_free_dither(dither);
    140144    caca_detach(dp);
    141     cucul_free(cv);
     145    cucul_free_canvas(cv);
    142146
    143147    return 0;
Note: See TracChangeset for help on using the changeset viewer.