commit | 9d12f5c11b56ef51ba2c95db721ae7e5bab27023 | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Sep 29 18:08:18 2011 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Sep 29 18:08:18 2011 +0000 |
tree | 61cce930350f9ca04a8beb8dea581033baf63b3b | |
parent | 6f92f18b6266098a74cd90ff7b88328acc439d17 [diff] [blame] |
Fix some VS2010 warnings Review URL: http://codereview.appspot.com/5155043 git-svn-id: http://skia.googlecode.com/svn/trunk@2380 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 66b4936..8dadc0b 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp
@@ -984,7 +984,8 @@ GrIntToScalar(dstM.fBounds.fBottom)); GrMatrix m; - m.setTranslate(-dstM.fBounds.fLeft, -dstM.fBounds.fTop); + m.setTranslate(-dstM.fBounds.fLeft*SK_Scalar1, + -dstM.fBounds.fTop*SK_Scalar1); m.postIDiv(texture->width(), texture->height()); grp->getMaskSampler(MASK_IDX)->setMatrix(m);