fixed a bug in #if 0'd code
authorkramm <kramm>
Mon, 24 Jan 2005 20:53:11 +0000 (20:53 +0000)
committerkramm <kramm>
Mon, 24 Jan 2005 20:53:11 +0000 (20:53 +0000)
lib/modules/swffont.c

index 3366e54..4a951a9 100644 (file)
@@ -294,9 +294,9 @@ SWFFONT* swf_LoadTrueTypeFont(char*filename)
 
 #if 0
        if(bbox.xMin > 0) {
-           font->glyph[font->numchars].advance = (bbox.xMax*FT_SCALE)/FT_SUBPIXELS;
+           font->glyph[font->numchars].advance = (bbox.xMax*20*FT_SCALE)/FT_SUBPIXELS;
        } else {
-           font->glyph[font->numchars].advance = ((bbox.xMax - bbox.xMin)*FT_SCALE)/FT_SUBPIXELS;
+           font->glyph[font->numchars].advance = ((bbox.xMax - bbox.xMin)*20*FT_SCALE)/FT_SUBPIXELS;
        }
 #else
        font->glyph[font->numchars].advance = glyph->advance.x*20/65536;