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

    r716 r734  
    4444    unsigned int red[256], green[256], blue[256], alpha[256];
    4545    double r[3], R[6];
    46     struct cucul_bitmap *bitmap;
     46    struct cucul_dither *dither;
    4747    int i, x, y, frame = 0, pause = 0;
    4848
     
    7979    }
    8080
    81     /* Create a libcucul bitmap */
    82     bitmap = cucul_create_bitmap(8, XSIZ, YSIZ, XSIZ, 0, 0, 0, 0);
     81    /* Create a libcucul dither */
     82    dither = cucul_create_dither(8, XSIZ, YSIZ, XSIZ, 0, 0, 0, 0);
    8383
    8484    /* Main loop */
     
    108108
    109109        /* Set the palette */
    110         cucul_set_bitmap_palette(bitmap, red, green, blue, alpha);
     110        cucul_set_dither_palette(dither, red, green, blue, alpha);
    111111
    112112        do_plasma(screen,
     
    120120
    121121paused:
    122         cucul_draw_bitmap(qq, 0, 0,
    123                           cucul_get_width(qq) - 1, cucul_get_height(qq) - 1,
    124                           bitmap, screen);
     122        cucul_dither_bitmap(qq, 0, 0,
     123                            cucul_get_width(qq) - 1, cucul_get_height(qq) - 1,
     124                            dither, screen);
    125125
    126126        cucul_blit(qq2, 0, 0, qq, NULL);
     
    137137
    138138end:
    139     cucul_free_bitmap(bitmap);
     139    cucul_free_dither(dither);
    140140    caca_detach(kk);
    141141    cucul_free(qq);
Note: See TracChangeset for help on using the changeset viewer.