Changeset 666 for libcaca/trunk


Ignore:
Timestamp:
Mar 22, 2006, 6:49:18 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Removed the cucul_t * argument from cucul_create_bitmap(). It's not needed.
Location:
libcaca/trunk
Files:
11 edited

Legend:

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

    r660 r666  
    259259 * \return Bitmap object, or NULL upon error.
    260260 */
    261 struct cucul_bitmap *cucul_create_bitmap(cucul_t *qq,
    262                                        unsigned int bpp, unsigned int w,
    263                                        unsigned int h, unsigned int pitch,
    264                                        unsigned int rmask, unsigned int gmask,
    265                                        unsigned int bmask, unsigned int amask)
     261struct cucul_bitmap *cucul_create_bitmap(unsigned int bpp, unsigned int w,
     262                                         unsigned int h, unsigned int pitch,
     263                                         unsigned int rmask, unsigned int gmask,
     264                                         unsigned int bmask, unsigned int amask)
    266265{
    267266    struct cucul_bitmap *bitmap;
  • libcaca/trunk/cucul/cucul.h

    r665 r666  
    203203 *  @{ */
    204204struct cucul_bitmap;
    205 struct cucul_bitmap *cucul_create_bitmap(cucul_t *, unsigned int, unsigned int,
    206                                        unsigned int, unsigned int,
    207                                        unsigned int, unsigned int,
    208                                        unsigned int, unsigned int);
     205struct cucul_bitmap *cucul_create_bitmap(unsigned int, unsigned int,
     206                                         unsigned int, unsigned int,
     207                                         unsigned int, unsigned int,
     208                                         unsigned int, unsigned int);
    209209void cucul_set_bitmap_palette(struct cucul_bitmap *,
    210210                              unsigned int r[], unsigned int g[],
  • libcaca/trunk/src/aafire.c

    r665 r666  
    141141
    142142#ifdef LIBCACA
    143   cucul_bitmap = cucul_create_bitmap(qq, 8, XSIZ, YSIZ - 2, XSIZ, 0, 0, 0, 0);
     143  cucul_bitmap = cucul_create_bitmap(8, XSIZ, YSIZ - 2, XSIZ, 0, 0, 0, 0);
    144144  cucul_set_bitmap_palette(cucul_bitmap, r, g, b, a);
    145145  bitmap = malloc(4 * cucul_get_width(qq) * cucul_get_height(qq) * sizeof(char));
  • libcaca/trunk/src/cacaball.c

    r665 r666  
    7070    /* Create a libcucul bitmap smaller than our pixel buffer, so that we
    7171     * display only the interesting part of it */
    72     cucul_bitmap = cucul_create_bitmap(qq, 8, XSIZ - METASIZE, YSIZ - METASIZE,
     72    cucul_bitmap = cucul_create_bitmap(8, XSIZ - METASIZE, YSIZ - METASIZE,
    7373                                       XSIZ, 0, 0, 0, 0);
    7474
  • libcaca/trunk/src/cacamoir.c

    r665 r666  
    6464
    6565    /* Create a libcucul bitmap */
    66     bitmap = cucul_create_bitmap(qq, 8, XSIZ, YSIZ, XSIZ, 0, 0, 0, 0);
     66    bitmap = cucul_create_bitmap(8, XSIZ, YSIZ, XSIZ, 0, 0, 0, 0);
    6767
    6868    /* Main loop */
  • libcaca/trunk/src/cacaplas.c

    r665 r666  
    7676
    7777    /* Create a libcucul bitmap */
    78     bitmap = cucul_create_bitmap(qq, 8, XSIZ, YSIZ, XSIZ, 0, 0, 0, 0);
     78    bitmap = cucul_create_bitmap(8, XSIZ, YSIZ, XSIZ, 0, 0, 0, 0);
    7979
    8080    /* Main loop */
  • libcaca/trunk/src/cacaview.c

    r665 r666  
    546546
    547547    /* Create the libcucul bitmap */
    548     bitmap = cucul_create_bitmap(qq, bpp, w, h, depth * w,
     548    bitmap = cucul_create_bitmap(bpp, w, h, depth * w,
    549549                                 rmask, gmask, bmask, amask);
    550550    if(!bitmap)
     
    713713    fclose(fp);
    714714
    715     /* Create the libcaca bitmap */
    716     bitmap = cucul_create_bitmap(qq, bpp, w, h, depth * w,
     715    /* Create the libcucul bitmap */
     716    bitmap = cucul_create_bitmap(bpp, w, h, depth * w,
    717717                                 rmask, gmask, bmask, amask);
    718718    if(!bitmap)
  • libcaca/trunk/test/demo.c

    r665 r666  
    537537        draw_circle(buffer, xo, yo, z, 0x000000ff, 200);
    538538
    539     bitmap = cucul_create_bitmap(qq, 32, 256, 256, 4 * 256, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
     539    bitmap = cucul_create_bitmap(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);
    541541    cucul_free_bitmap(bitmap);
  • libcaca/trunk/test/export.c

    r665 r666  
    8181    }
    8282
    83     bitmap = cucul_create_bitmap(qq, 32, 256, 256, 4 * 256,
     83    bitmap = cucul_create_bitmap(32, 256, 256, 4 * 256,
    8484                                 0x00ff0000, 0x0000ff00, 0x000000ff, 0x0);
    8585    cucul_draw_bitmap(qq, 0, 0,
  • libcaca/trunk/test/gamma.c

    r665 r666  
    4646    }
    4747
    48     left = cucul_create_bitmap(qq, 32, 256, 4, 4 * 256,
     48    left = cucul_create_bitmap(32, 256, 4, 4 * 256,
    4949                               0x00ff0000, 0x0000ff00, 0x000000ff, 0x0);
    50     right = cucul_create_bitmap(qq, 32, 256, 4, 4 * 256,
     50    right = cucul_create_bitmap(32, 256, 4, 4 * 256,
    5151                                0x00ff0000, 0x0000ff00, 0x000000ff, 0x0);
    5252    caca_set_delay(kk, 20000);
  • libcaca/trunk/test/hsv.c

    r665 r666  
    4444    }
    4545
    46     bitmap = cucul_create_bitmap(qq, 32, 256, 256, 4 * 256,
     46    bitmap = cucul_create_bitmap(32, 256, 256, 4 * 256,
    4747                                 0x00ff0000, 0x0000ff00, 0x000000ff, 0x0);
    4848    cucul_draw_bitmap(qq, 0, 0,
Note: See TracChangeset for help on using the changeset viewer.