git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed some memory issues in ruby interface
[swftools.git]
/
lib
/
example
/
hexfont.c
diff --git
a/lib/example/hexfont.c
b/lib/example/hexfont.c
index
bf5695b
..
1712112
100644
(file)
--- a/
lib/example/hexfont.c
+++ b/
lib/example/hexfont.c
@@
-30,11
+30,11
@@
int main()
{
char* hex = "0123456789ABCDEF";
int main()
{
char* hex = "0123456789ABCDEF";
- SWFFONT* font = swf_LoadFont("Courier.swf");
+ SWFFONT* font = swf_LoadFont("../../doc/Courier.swf");
SWFFONT hexfont;
memset(&hexfont, 0, sizeof(hexfont));
SWFFONT hexfont;
memset(&hexfont, 0, sizeof(hexfont));
- hexfont.name = "HexFont";
+ hexfont.name = (char*)"HexFont";
hexfont.layout = malloc(sizeof(SWFLAYOUT));
hexfont.numchars = 256;
hexfont.maxascii = 256;
hexfont.layout = malloc(sizeof(SWFLAYOUT));
hexfont.numchars = 256;
hexfont.maxascii = 256;