diff options
Diffstat (limited to 'samplecode/SampleFontScalerTest.cpp')
| -rw-r--r-- | samplecode/SampleFontScalerTest.cpp | 3 |
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); { |
