From d5c725f9d078dd9103bf35286abe767646ab81aa Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 19 May 2003 18:52:42 +0000 Subject: [PATCH] glyphs now use CountUBits, which makes textdefines slightly smaller --- lib/modules/swftext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/swftext.c b/lib/modules/swftext.c index 10b04fc..8a04b38 100644 --- a/lib/modules/swftext.c +++ b/lib/modules/swftext.c @@ -685,7 +685,7 @@ int swf_TextCountBits(SWFFONT * font,U8 * s,int scale,U8 * gbits,U8 * abits) if(s[0] < font->maxascii) glyph = font->ascii2glyph[s[0]]; if(glyph>=0) { - g = swf_CountBits(glyph,g); + g = swf_CountUBits(glyph,g); a = swf_CountBits((((U32)font->glyph[glyph].advance)*scale)/100,a); } s++; @@ -1016,7 +1016,7 @@ void swf_FontCreateLayout(SWFFONT*f) if(!shape2) { fprintf(stderr, "Shape parse error\n");exit(1); } - bbox = swf_GetShapeBoundingBox(shape2->lines); + bbox = swf_GetShapeBoundingBox(shape2); swf_Shape2Free(shape2); f->layout->bounds[t] = bbox; /* FIXME */ -- 1.7.10.4