X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftext.c;h=4b90d6f4603f93a2ca81b92b036b7b5be08aab1e;hb=9b55540dea2fbd5c4fc153bde0b32190c10fb87e;hp=78b3bce2c9aa65c7cd653d5e532a8c50074e8dae;hpb=e448c7a56df8e289c9dbd5b8d87753addd541091;p=swftools.git diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index 78b3bce..4b90d6f 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -267,7 +267,7 @@ int swf_FontSetDefine(TAG * t,SWFFONT * f) int p,i,j; if ((!t)||(!f)) return -1; - swf_ResetBitcount(t); + swf_ResetWriteBits(t); swf_SetU16(t,f->id); p = 0; j = 0; @@ -283,14 +283,14 @@ int swf_FontSetDefine(TAG * t,SWFFONT * f) if (f->glyph[i].shape) swf_SetSimpleShape(t,f->glyph[i].shape); - swf_ResetBitcount(t); + swf_ResetWriteBits(t); return 0; } int swf_FontSetInfo(TAG * t,SWFFONT * f) { int l,i; if ((!t)||(!f)) return -1; - swf_ResetBitcount(t); + swf_ResetWriteBits(t); swf_SetU16(t,f->id); l = strlen(f->name); if (l>255) l = 255; swf_SetU8(t,l); @@ -344,7 +344,7 @@ int swf_FontExport(int handle,SWFFONT * f) return l; } -int FontImport(int handle,SWFFONT * * font) +int swf_FontImport(int handle,SWFFONT * * font) { SWFFONT * f; int layout; int i = 0; @@ -484,7 +484,7 @@ int swf_TextSetCharRecord(TAG * t,SWFFONT * font,U8 * s,int scale,U8 gbits,U8 ab swf_SetBits(t,(((U32)font->glyph[s[i]].advance)*scale)/100,abits); } - swf_ResetBitcount(t); + swf_ResetWriteBits(t); return 0; }