Ignore:
Timestamp:
Apr 10, 2006, 10:02:38 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed *bitmap to *dither. Ben ouais connard, je fais ce que je veux.
File:
1 edited

Legend:

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

    r710 r734  
    4343static caca_t *kk;
    4444static int XSIZ, YSIZ;
    45 static struct cucul_bitmap *cucul_bitmap;
     45static struct cucul_dither *cucul_dither;
    4646static char *bitmap;
    4747static int pause = 0;
     
    141141
    142142#ifdef LIBCACA
    143   cucul_bitmap = cucul_create_bitmap(8, XSIZ, YSIZ - 2, XSIZ, 0, 0, 0, 0);
    144   cucul_set_bitmap_palette(cucul_bitmap, r, g, b, a);
     143  cucul_dither = cucul_create_dither(8, XSIZ, YSIZ - 2, XSIZ, 0, 0, 0, 0);
     144  cucul_set_dither_palette(cucul_dither, r, g, b, a);
    145145  bitmap = malloc(4 * cucul_get_width(qq) * cucul_get_height(qq) * sizeof(char));
    146146  memset(bitmap, 0, 4 * cucul_get_width(qq) * cucul_get_height(qq));
     
    236236#ifdef LIBCACA
    237237paused:
    238   cucul_draw_bitmap(qq, 0, 0,
    239                     cucul_get_width(qq) - 1, cucul_get_height(qq) - 1,
    240                     cucul_bitmap, bitmap);
     238  cucul_dither_bitmap(qq, 0, 0,
     239                      cucul_get_width(qq) - 1, cucul_get_height(qq) - 1,
     240                      cucul_dither, bitmap);
    241241  cucul_set_color(qq, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
    242242  cucul_putstr(qq, cucul_get_width(qq) - 30, cucul_get_height(qq) - 2,
Note: See TracChangeset for help on using the changeset viewer.