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

    r811 r813  
    101101
    102102#ifdef LIBCACA
    103   cv = cucul_create(80, 32);
     103  cv = cucul_create_canvas(80, 32);
    104104  if (!cv)
    105105    {
     
    114114    }
    115115  caca_set_delay(dp, 10000);
    116   XSIZ = cucul_get_width(cv) * 2;
    117   YSIZ = cucul_get_height(cv) * 2 - 4;
     116  XSIZ = cucul_get_canvas_width(cv) * 2;
     117  YSIZ = cucul_get_canvas_height(cv) * 2 - 4;
    118118#else
    119119  context = aa_autoinit (&aa_defparams);
     
    143143  cucul_dither = cucul_create_dither(8, XSIZ, YSIZ - 2, XSIZ, 0, 0, 0, 0);
    144144  cucul_set_dither_palette(cucul_dither, r, g, b, a);
    145   bitmap = malloc(4 * cucul_get_width(cv) * cucul_get_height(cv) * sizeof(char));
    146   memset(bitmap, 0, 4 * cucul_get_width(cv) * cucul_get_height(cv));
     145  bitmap = malloc(4 * cucul_get_canvas_width(cv)
     146                    * cucul_get_canvas_height(cv));
     147  memset(bitmap, 0, 4 * cucul_get_canvas_width(cv)
     148                      * cucul_get_canvas_height(cv));
    147149#else
    148150  aa_hidecursor (context);
     
    154156#ifdef LIBCACA
    155157  caca_detach(dp);
    156   cucul_free(cv);
     158  cucul_free_canvas(cv);
    157159#else
    158160  aa_close (context);
     
    236238#ifdef LIBCACA
    237239paused:
    238   cucul_dither_bitmap(cv, 0, 0,
    239                       cucul_get_width(cv) - 1, cucul_get_height(cv) - 1,
    240                       cucul_dither, bitmap);
     240  cucul_dither_bitmap(cv, 0, 0, cucul_get_canvas_width(cv) - 1,
     241                      cucul_get_canvas_height(cv) - 1, cucul_dither, bitmap);
    241242  cucul_set_color(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
    242   cucul_putstr(cv, cucul_get_width(cv) - 30, cucul_get_height(cv) - 2,
    243                " -=[ Powered by libcaca ]=- ");
     243  cucul_putstr(cv, cucul_get_canvas_width(cv) - 30,
     244               cucul_get_canvas_height(cv) - 2, " -=[ Powered by libcaca ]=- ");
    244245 
    245246  caca_display(dp);
Note: See TracChangeset for help on using the changeset viewer.