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_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);