Changeset 666 for libcaca/trunk
- Timestamp:
- Mar 22, 2006, 6:49:18 PM (15 years ago)
- Location:
- libcaca/trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/cucul/bitmap.c
r660 r666 259 259 * \return Bitmap object, or NULL upon error. 260 260 */ 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) 261 struct 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) 266 265 { 267 266 struct cucul_bitmap *bitmap; -
libcaca/trunk/cucul/cucul.h
r665 r666 203 203 * @{ */ 204 204 struct 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);205 struct cucul_bitmap *cucul_create_bitmap(unsigned int, unsigned int, 206 unsigned int, unsigned int, 207 unsigned int, unsigned int, 208 unsigned int, unsigned int); 209 209 void cucul_set_bitmap_palette(struct cucul_bitmap *, 210 210 unsigned int r[], unsigned int g[], -
libcaca/trunk/src/aafire.c
r665 r666 141 141 142 142 #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); 144 144 cucul_set_bitmap_palette(cucul_bitmap, r, g, b, a); 145 145 bitmap = malloc(4 * cucul_get_width(qq) * cucul_get_height(qq) * sizeof(char)); -
libcaca/trunk/src/cacaball.c
r665 r666 70 70 /* Create a libcucul bitmap smaller than our pixel buffer, so that we 71 71 * 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, 73 73 XSIZ, 0, 0, 0, 0); 74 74 -
libcaca/trunk/src/cacamoir.c
r665 r666 64 64 65 65 /* 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); 67 67 68 68 /* Main loop */ -
libcaca/trunk/src/cacaplas.c
r665 r666 76 76 77 77 /* 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); 79 79 80 80 /* Main loop */ -
libcaca/trunk/src/cacaview.c
r665 r666 546 546 547 547 /* 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, 549 549 rmask, gmask, bmask, amask); 550 550 if(!bitmap) … … 713 713 fclose(fp); 714 714 715 /* Create the libc acabitmap */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, 717 717 rmask, gmask, bmask, amask); 718 718 if(!bitmap) -
libcaca/trunk/test/demo.c
r665 r666 537 537 draw_circle(buffer, xo, yo, z, 0x000000ff, 200); 538 538 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); 540 540 cucul_draw_bitmap(qq, 0, 0, cucul_get_width(qq) - 1, cucul_get_height(qq) - 1, bitmap, (char *)buffer); 541 541 cucul_free_bitmap(bitmap); -
libcaca/trunk/test/export.c
r665 r666 81 81 } 82 82 83 bitmap = cucul_create_bitmap( qq,32, 256, 256, 4 * 256,83 bitmap = cucul_create_bitmap(32, 256, 256, 4 * 256, 84 84 0x00ff0000, 0x0000ff00, 0x000000ff, 0x0); 85 85 cucul_draw_bitmap(qq, 0, 0, -
libcaca/trunk/test/gamma.c
r665 r666 46 46 } 47 47 48 left = cucul_create_bitmap( qq,32, 256, 4, 4 * 256,48 left = cucul_create_bitmap(32, 256, 4, 4 * 256, 49 49 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, 51 51 0x00ff0000, 0x0000ff00, 0x000000ff, 0x0); 52 52 caca_set_delay(kk, 20000); -
libcaca/trunk/test/hsv.c
r665 r666 44 44 } 45 45 46 bitmap = cucul_create_bitmap( qq,32, 256, 256, 4 * 256,46 bitmap = cucul_create_bitmap(32, 256, 256, 4 * 256, 47 47 0x00ff0000, 0x0000ff00, 0x000000ff, 0x0); 48 48 cucul_draw_bitmap(qq, 0, 0,
Note: See TracChangeset
for help on using the changeset viewer.