don't promote top/left to a fixed, when what we want is just an int
authorreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 22 Dec 2008 22:12:55 +0000 (22:12 +0000)
committerreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 22 Dec 2008 22:12:55 +0000 (22:12 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@44 2bbb7eff-a529-9590-31e7-b0007b416f81

src/ports/SkFontHost_mac.cpp

index e204eef..a1a2bec 100755 (executable)
@@ -351,8 +351,8 @@ void SkScalerContext_Mac::generateMetrics(SkGlyph* glyph)
         glyph->fAdvanceY = -SkFloatToFixed(metrics.deviceAdvance.y);
         glyph->fWidth = metrics.width;
         glyph->fHeight = metrics.height;
-        glyph->fTop = -SkFloatToFixed(metrics.topLeft.y);
-        glyph->fLeft = SkFloatToFixed(metrics.topLeft.x);
+        glyph->fTop = -sk_float_round2int(metrics.topLeft.y);
+        glyph->fLeft = sk_float_round2int(metrics.topLeft.x);
     }
 }