Index: src/core/SkDrawProcs.h |
diff --git a/src/core/SkDrawProcs.h b/src/core/SkDrawProcs.h |
index a861a0ad86688fc6b357e4862cc5a8fe4f7a5c22..15c5cf866a537c47ef37e4644057faa808292139 100644 |
--- a/src/core/SkDrawProcs.h |
+++ b/src/core/SkDrawProcs.h |
@@ -51,12 +51,12 @@ public: |
if (SkPaint::kLeft_Align == fAlign) { |
dst->set(loc.fX, loc.fY); |
} else if (SkPaint::kCenter_Align == fAlign) { |
- dst->set(loc.fX - SkFixedToScalar(glyph.fAdvanceX >> 1), |
- loc.fY - SkFixedToScalar(glyph.fAdvanceY >> 1)); |
+ dst->set(loc.fX - SkFloatToScalar(glyph.fAdvanceX) / 2, |
+ loc.fY - SkFloatToScalar(glyph.fAdvanceY) / 2); |
} else { |
SkASSERT(SkPaint::kRight_Align == fAlign); |
- dst->set(loc.fX - SkFixedToScalar(glyph.fAdvanceX), |
- loc.fY - SkFixedToScalar(glyph.fAdvanceY)); |
+ dst->set(loc.fX - SkFloatToScalar(glyph.fAdvanceX), |
+ loc.fY - SkFloatToScalar(glyph.fAdvanceY)); |
} |
} |
private: |