Use CGToScalar instead of SkFloatToScalar as CGFloat can be either double or float.
Review URL: https://codereview.appspot.com/6451049 git-svn-id: http://skia.googlecode.com/svn/trunk@4766 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
ece0100c22
commit
b1047839e0
@ -805,8 +805,8 @@ CGRGBPixel* Offscreen::getCG(const SkScalerContext_Mac& context, const SkGlyph&
|
||||
void SkScalerContext_Mac::getVerticalOffset(CGGlyph glyphID, SkIPoint* offset) const {
|
||||
CGSize vertOffset;
|
||||
CTFontGetVerticalTranslationsForGlyphs(fCTVerticalFont, &glyphID, &vertOffset, 1);
|
||||
const SkPoint trans = {SkFloatToScalar(vertOffset.width),
|
||||
SkFloatToScalar(vertOffset.height)};
|
||||
const SkPoint trans = {CGToScalar(vertOffset.width),
|
||||
CGToScalar(vertOffset.height)};
|
||||
SkPoint floatOffset;
|
||||
fVerticalMatrix.mapPoints(&floatOffset, &trans, 1);
|
||||
if (!isSnowLeopard()) {
|
||||
|
Loading…
Reference in New Issue
Block a user