X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fglyphshape.c;h=d1e8d0176489e8048592c9a31c2b5690c7b65bd5;hb=879d0eec420fe0fd5ddcd56c8fe62b82a6744edd;hp=28f475d3a0b2a15b334f84b7c92728d3efbf8b9f;hpb=d3f30350af5d5caafe7a21875bc33f6c75f8b2c9;p=swftools.git diff --git a/lib/example/glyphshape.c b/lib/example/glyphshape.c index 28f475d..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(&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);