git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test importing a builtin type, too
[swftools.git]
/
lib
/
example
/
edittext.c
diff --git
a/lib/example/edittext.c
b/lib/example/edittext.c
index
10fa39d
..
19b04a4
100644
(file)
--- a/
lib/example/edittext.c
+++ b/
lib/example/edittext.c
@@
-111,7
+111,7
@@
int main (int argc,char ** argv)
tag = swf_InsertTag(tag,ST_DEFINETEXT);
swf_SetU16(tag, 33); //id
tag = swf_InsertTag(tag,ST_DEFINETEXT);
swf_SetU16(tag, 33); //id
- swf_SetDefineText(tag, font, &rgb, "Password:", 20, 0);
+ swf_SetDefineText(tag, font, &rgb, "Password:", 20);
tag = swf_InsertTag(tag,ST_PLACEOBJECT2);
m.tx = width/2*20;
tag = swf_InsertTag(tag,ST_PLACEOBJECT2);
m.tx = width/2*20;
@@
-121,7
+121,7
@@
int main (int argc,char ** argv)
tag = swf_InsertTag(tag,ST_SHOWFRAME);
tag = swf_InsertTag(tag,ST_END);
tag = swf_InsertTag(tag,ST_SHOWFRAME);
tag = swf_InsertTag(tag,ST_END);
- f = open("edittext.swf",O_WRONLY|O_CREAT|O_TRUNC, 0644);
+ f = open("edittext.swf",O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644);
if(swf_WriteSWF(f,&swf)<0) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
if(swf_WriteSWF(f,&swf)<0) fprintf(stderr,"WriteSWF() failed.\n");
close(f);