Ignore:
Timestamp:
Apr 10, 2006, 10:02:38 PM (16 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/cacamoir.c

    r710 r734  
    4040    cucul_t *qq; caca_t *kk;
    4141    unsigned int red[256], green[256], blue[256], alpha[256];
    42     struct cucul_bitmap *bitmap;
     42    struct cucul_dither *dither;
    4343    int i, x, y, frame = 0, pause = 0;
    4444
     
    6363        draw_disc(i, (i / DISCTHICKNESS) % 2);
    6464
    65     /* Create a libcucul bitmap */
    66     bitmap = cucul_create_bitmap(8, XSIZ, YSIZ, XSIZ, 0, 0, 0, 0);
     65    /* Create a libcucul dither */
     66    dither = cucul_create_dither(8, XSIZ, YSIZ, XSIZ, 0, 0, 0, 0);
    6767
    6868    /* Main loop */
     
    9393        blue[1] = 0.5 * (1 + cos(0.05 * frame + 5.0)) * 0xfff;
    9494
    95         cucul_set_bitmap_palette(bitmap, red, green, blue, alpha);
     95        cucul_set_dither_palette(dither, red, green, blue, alpha);
    9696
    9797        /* Draw circles */
     
    107107
    108108paused:
    109         cucul_draw_bitmap(qq, 0, 0,
    110                           cucul_get_width(qq) - 1, cucul_get_height(qq) - 1,
    111                           bitmap, screen);
     109        cucul_dither_bitmap(qq, 0, 0,
     110                            cucul_get_width(qq) - 1, cucul_get_height(qq) - 1,
     111                            dither, screen);
    112112        cucul_set_color(qq, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
    113113        cucul_putstr(qq, cucul_get_width(qq) - 30, cucul_get_height(qq) - 2,
     
    117117
    118118end:
    119     cucul_free_bitmap(bitmap);
     119    cucul_free_dither(dither);
    120120    caca_detach(kk);
    121121    cucul_free(qq);
Note: See TracChangeset for help on using the changeset viewer.