X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fedittext.c;h=19b04a46ef8f5039d0fb86a9561e7e0a34791a55;hb=c63b2bf21dc1df9a736f0b4c08f6cba828cdab92;hp=10fa39d9d4ea1d910c23b70196040393c4ce6a91;hpb=9ad02f173cca3f7c0d51f641d0d668219a561e7d;p=swftools.git diff --git a/lib/example/edittext.c b/lib/example/edittext.c index 10fa39d..19b04a4 100644 --- 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 - 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; @@ -121,7 +121,7 @@ int main (int argc,char ** argv) 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);