X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=lib%2Fmodules%2Fswftext.c;h=1b770242593d01bb28fe99a8ccdf7f78b79a6ed2;hb=2275b63cc1e60eb913a939f4cc773763eef5f8cf;hp=78b3bce2c9aa65c7cd653d5e532a8c50074e8dae;hpb=e448c7a56df8e289c9dbd5b8d87753addd541091;p=swftools.git diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index 78b3bce..1b77024 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); @@ -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; }