Ignore:
Timestamp:
Dec 20, 2003, 11:54:35 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • examples/aafire.c: + The image buffer in cacafire was too small.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/examples/aafire.c

    r249 r262  
    133133  caca_bitmap = caca_create_bitmap(8, XSIZ, YSIZ - 2, XSIZ, 0, 0, 0, 0);
    134134  caca_set_bitmap_palette(caca_bitmap, r, g, b, a);
    135   bitmap = malloc(XSIZ * YSIZ * sizeof(char));
     135  bitmap = malloc(4 * caca_get_width() * caca_get_height() * sizeof(char));
    136136#else
    137137  aa_hidecursor (context);
Note: See TracChangeset for help on using the changeset viewer.