Changeset 653


Ignore:
Timestamp:
Mar 21, 2006, 10:52:32 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Got rid of useless parameters in cucul_*_bitmap and cucul_*_sprite.
Location:
libcaca/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/bitmap.c

    r568 r653  
    265265 * \param alpha Array of 256 alpha values.
    266266 */
    267 void cucul_set_bitmap_palette(cucul_t *qq, struct cucul_bitmap *bitmap,
     267void cucul_set_bitmap_palette(struct cucul_bitmap *bitmap,
    268268                              unsigned int red[], unsigned int green[],
    269269                              unsigned int blue[], unsigned int alpha[])
     
    303303 * \param gamma Gamma value.
    304304 */
    305 void cucul_set_bitmap_gamma(cucul_t *qq, struct cucul_bitmap *bitmap, float gamma)
     305void cucul_set_bitmap_gamma(struct cucul_bitmap *bitmap, float gamma)
    306306{
    307307    int i;
     
    323323 * \param bitmap Bitmap object.
    324324 */
    325 void cucul_free_bitmap(cucul_t *qq, struct cucul_bitmap *bitmap)
     325void cucul_free_bitmap(struct cucul_bitmap *bitmap)
    326326{
    327327    if(!bitmap)
  • libcaca/trunk/cucul/cucul.h

    r644 r653  
    193193int cucul_get_sprite_dx(cucul_t *, struct cucul_sprite const *, int);
    194194int cucul_get_sprite_dy(cucul_t *, struct cucul_sprite const *, int);
    195 void cucul_draw_sprite(cucul_t *, int, int, struct cucul_sprite const *, int);void cucul_free_sprite(cucul_t *, struct cucul_sprite *);
     195void cucul_draw_sprite(cucul_t *, int, int, struct cucul_sprite const *, int);
     196void cucul_free_sprite(struct cucul_sprite *);
    196197/*  @} */
    197198
     
    207208                                       unsigned int, unsigned int,
    208209                                       unsigned int, unsigned int);
    209 void cucul_set_bitmap_palette(cucul_t *, struct cucul_bitmap *,
    210                              unsigned int r[], unsigned int g[],
    211                              unsigned int b[], unsigned int a[]);
    212 void cucul_set_bitmap_gamma(cucul_t *, struct cucul_bitmap *, float);
     210void cucul_set_bitmap_palette(struct cucul_bitmap *,
     211                              unsigned int r[], unsigned int g[],
     212                              unsigned int b[], unsigned int a[]);
     213void cucul_set_bitmap_gamma(struct cucul_bitmap *, float);
    213214void cucul_draw_bitmap(cucul_t *, int, int, int, int, struct cucul_bitmap const *, void *);
    214 void cucul_free_bitmap(cucul_t *, struct cucul_bitmap *);
     215void cucul_free_bitmap(struct cucul_bitmap *);
    215216/*  @} */
    216217
  • libcaca/trunk/cucul/sprite.c

    r568 r653  
    302302 * \return void
    303303 */
    304 void cucul_free_sprite(cucul_t *qq, struct cucul_sprite *sprite)
     304void cucul_free_sprite(struct cucul_sprite *sprite)
    305305{
    306306    int i;
  • libcaca/trunk/src/aafire.c

    r568 r653  
    142142#ifdef LIBCACA
    143143  cucul_bitmap = cucul_create_bitmap(qq, 8, XSIZ, YSIZ - 2, XSIZ, 0, 0, 0, 0);
    144   cucul_set_bitmap_palette(qq, cucul_bitmap, r, g, b, a);
     144  cucul_set_bitmap_palette(cucul_bitmap, 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));
  • libcaca/trunk/src/cacaball.c

    r647 r653  
    124124
    125125        /* Set the palette */
    126         cucul_set_bitmap_palette(qq, cucul_bitmap, r, g, b, a);
     126        cucul_set_bitmap_palette(cucul_bitmap, r, g, b, a);
    127127
    128128        /* Silly paths for our balls */
     
    158158    /* End, bye folks */
    159159end:
    160     cucul_free_bitmap(qq, cucul_bitmap);
     160    cucul_free_bitmap(cucul_bitmap);
    161161    caca_detach(kk);
    162162    cucul_end(qq);
  • libcaca/trunk/src/cacamoir.c

    r614 r653  
    8989        blue[1] = 0.5 * (1 + cos(0.05 * frame + 5.0)) * 0xfff;
    9090
    91         cucul_set_bitmap_palette(qq, bitmap, red, green, blue, alpha);
     91        cucul_set_bitmap_palette(bitmap, red, green, blue, alpha);
    9292
    9393        /* Draw circles */
     
    110110
    111111end:
    112     cucul_free_bitmap(qq, bitmap);
     112    cucul_free_bitmap(bitmap);
    113113    caca_detach(kk);
    114114    cucul_end(qq);
  • libcaca/trunk/src/cacaplas.c

    r649 r653  
    100100
    101101        /* Set the palette */
    102         cucul_set_bitmap_palette(qq, bitmap, red, green, blue, alpha);
     102        cucul_set_bitmap_palette(bitmap, red, green, blue, alpha);
    103103
    104104        do_plasma(screen,
     
    122122
    123123end:
    124     cucul_free_bitmap(qq, bitmap);
     124    cucul_free_bitmap(bitmap);
    125125    caca_detach(kk);
    126126    cucul_end(qq);
  • libcaca/trunk/src/cacaview.c

    r540 r653  
    488488#endif
    489489    if(bitmap)
    490         cucul_free_bitmap(qq, bitmap);
     490        cucul_free_bitmap(bitmap);
    491491    bitmap = NULL;
    492492}
     
    691691
    692692    if(bpp == 8)
    693         cucul_set_bitmap_palette(qq, bitmap, red, green, blue, alpha);
     693        cucul_set_bitmap_palette(bitmap, red, green, blue, alpha);
    694694#endif
    695695}
  • libcaca/trunk/test/demo.c

    r618 r653  
    174174
    175175    /* Clean up */
    176     cucul_free_sprite(qq, sprite);
     176    cucul_free_sprite(sprite);
    177177    caca_detach(kk);
    178178    cucul_end(qq);
     
    496496    cucul_draw_bitmap(qq, 0, 0, cucul_get_width(qq) - 1, cucul_get_height(qq) - 1,
    497497                     bitmap, buffer);
    498     cucul_free_bitmap(qq, bitmap);
     498    cucul_free_bitmap(bitmap);
    499499}
    500500#endif
     
    539539    bitmap = cucul_create_bitmap(qq, 32, 256, 256, 4 * 256, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
    540540    cucul_draw_bitmap(qq, 0, 0, cucul_get_width(qq) - 1, cucul_get_height(qq) - 1, bitmap, (char *)buffer);
    541     cucul_free_bitmap(qq, bitmap);
     541    cucul_free_bitmap(bitmap);
    542542}
    543543
  • libcaca/trunk/test/export.c

    r644 r653  
    8686                      cucul_get_width(qq) - 1, cucul_get_height(qq) - 1,
    8787                      bitmap, pixels);
    88     cucul_free_bitmap(qq, bitmap);
     88    cucul_free_bitmap(bitmap);
    8989
    9090    cucul_set_color(qq, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLACK);
  • libcaca/trunk/test/hsv.c

    r527 r653  
    4949                      cucul_get_width(qq) - 1, cucul_get_height(qq) - 1,
    5050                      bitmap, buffer);
    51     cucul_free_bitmap(qq, bitmap);
     51    cucul_free_bitmap(bitmap);
    5252
    5353    caca_display(kk);
Note: See TracChangeset for help on using the changeset viewer.