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/test/dithering.c

    r811 r813  
    4141    int x, y;
    4242
    43     cv = cucul_create(0, 0);
     43    cv = cucul_create_canvas(0, 0);
    4444    dp = caca_attach(cv);
    4545
     
    119119        cucul_set_color(cv, points[nearb], points[neara]);
    120120
    121         cucul_putchar(cv, x * cucul_get_width(cv) / 100,
    122                           (100 - y) * cucul_get_height(cv) / 100, ch);
     121        cucul_putchar(cv, x * cucul_get_canvas_width(cv) / 100,
     122                          (100 - y) * cucul_get_canvas_height(cv) / 100, ch);
    123123    }
    124124
     
    128128
    129129    caca_detach(dp);
    130     cucul_free(cv);
     130    cucul_free_canvas(cv);
    131131
    132132    return 0;
Note: See TracChangeset for help on using the changeset viewer.