more horizontal refactoring
[swftools.git] / lib / example / edittext.c
index 10fa39d..19b04a4 100644 (file)
@@ -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);