git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
727c117
)
added memset
author
kramm
<kramm>
Mon, 5 Nov 2001 15:31:41 +0000
(15:31 +0000)
committer
kramm
<kramm>
Mon, 5 Nov 2001 15:31:41 +0000
(15:31 +0000)
lib/example/demofont.c
patch
|
blob
|
history
diff --git
a/lib/example/demofont.c
b/lib/example/demofont.c
index
8d85945
..
c39a5e9
100644
(file)
--- 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