X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fglyphshape.c;h=d1e8d0176489e8048592c9a31c2b5690c7b65bd5;hb=879d0eec420fe0fd5ddcd56c8fe62b82a6744edd;hp=f2075e8ee01ba2fcca74ce7c2f3ff21ba6f242a9;hpb=3a2f1b644ea46ec16800ea5f6779e98790442d82;p=swftools.git diff --git a/lib/example/glyphshape.c b/lib/example/glyphshape.c index f2075e8..d1e8d01 100644 --- a/lib/example/glyphshape.c +++ b/lib/example/glyphshape.c @@ -87,12 +87,11 @@ int main(int argc, char ** argv) int height = 400; char * s = BANNER_TEXT; - FONTUSAGE use; SWFFONT * font = Font_Demo_Font(ID_FONT); // change font name here - swf_FontInitUsage(font,&use); - swf_FontUse(font,&use,s); - swf_FontReduce(font,&use); // make sure that gid's point to the specific glyphs + swf_FontInitUsage(font); + swf_FontUse(font,s); + swf_FontReduce(font); // make sure that gid's point to the specific glyphs memset(&swf,0x00,sizeof(SWF)); @@ -158,7 +157,7 @@ int main(int argc, char ** argv) // swf_WriteCGI(&swf); - f = open("glyphshape.swf",O_RDWR|O_CREAT|O_TRUNC,0644); + f = open("glyphshape.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644); if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n"); close(f);