aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleFontScalerTest.cpp
diff options
context:
space:
mode:
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-24 21:09:40 +0000
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-24 21:09:40 +0000
commit820e80ad6390e120d4991a5280d0452ec87beaeb (patch)
tree463440199a9e08e46baf84d704d92ee37f94394c /samplecode/SampleFontScalerTest.cpp
parent45dd1fa3cf845e46cd8f994a1cc664d4cb137131 (diff)
Fix some warnings on VS2010
Review URL: http://codereview.appspot.com/5312051/ git-svn-id: http://skia.googlecode.com/svn/trunk@2520 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleFontScalerTest.cpp')
-rw-r--r--samplecode/SampleFontScalerTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/samplecode/SampleFontScalerTest.cpp b/samplecode/SampleFontScalerTest.cpp
index 9d3e153e07..062eca3386 100644
--- a/samplecode/SampleFontScalerTest.cpp
+++ b/samplecode/SampleFontScalerTest.cpp
@@ -102,7 +102,8 @@ protected:
SkScalar y = SkIntToScalar(20);
SkAutoCanvasRestore acr(canvas, true);
- canvas->translate(50 + i * 230, 20);
+ canvas->translate(SkIntToScalar(50 + i * 230),
+ SkIntToScalar(20));
rotate_about(canvas, i * 5, x, y * 10);
{