From: kramm Date: Mon, 5 Nov 2001 15:31:41 +0000 (+0000) Subject: added memset X-Git-Tag: release-0-1-2~44 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=a05bfe04e9f497f3f7257e6e560ceb63a6910c55 added memset --- diff --git a/lib/example/demofont.c b/lib/example/demofont.c index 8d85945..c39a5e9 100644 --- a/lib/example/demofont.c +++ b/lib/example/demofont.c @@ -115,6 +115,7 @@ SWFFONT * Font_Demo_Font(U16 id) f->glyph = (SWFGLYPH*)malloc(sizeof(SWFGLYPH)*6); f->glyph2ascii = (U16*)malloc(sizeof(U16)*6); f->ascii2glyph = (int*)malloc(sizeof(int)*256); + memset(f->ascii2glyph, -1, sizeof(int)*256); addGlyph(f, 0, 102, 64, &Glyphs_Demo_Font[0x0000], 872); // f addGlyph(f, 1, 108, 53, &Glyphs_Demo_Font[0x006d], 452); // l