use SkIntToScalar to fix warning

git-svn-id: http://skia.googlecode.com/svn/trunk@9382 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2013-05-31 21:06:03 +00:00
parent 7edec14039
commit 1b6a04ff84

View File

@ -125,7 +125,8 @@ void SkGScalerContext::generateImage(const SkGlyph& glyph) {
bm.eraseColor(0);
SkCanvas canvas(bm);
canvas.translate(-glyph.fLeft, -glyph.fTop);
canvas.translate(-SkIntToScalar(glyph.fLeft),
-SkIntToScalar(glyph.fTop));
canvas.concat(fMatrix);
canvas.drawPath(path, fFace->paint());
} else {