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:
parent
7edec14039
commit
1b6a04ff84
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user