diff --git a/gm/shadertext.cpp b/gm/shadertext.cpp index dac75aecf1..d3c3712e6b 100644 --- a/gm/shadertext.cpp +++ b/gm/shadertext.cpp @@ -170,8 +170,10 @@ protected: canvas->translate(SkIntToScalar(20), SkIntToScalar(10)); SkPath path; - path.arcTo(SkRect::MakeXYWH(-40, 15, 300, 90), - SK_Scalar1 * 225, SK_Scalar1 * 90, false); + path.arcTo(SkRect::MakeXYWH(SkIntToScalar(-40), SkIntToScalar(15), + SkIntToScalar(300), SkIntToScalar(90)), + SkIntToScalar(225), SkIntToScalar(90), + false); path.close(); static const int testsPerCol = 8; diff --git a/samplecode/SampleShaderText.cpp b/samplecode/SampleShaderText.cpp index dedf04d72a..202bd736e7 100644 --- a/samplecode/SampleShaderText.cpp +++ b/samplecode/SampleShaderText.cpp @@ -167,8 +167,10 @@ protected: canvas->translate(SkIntToScalar(20), SkIntToScalar(10)); SkPath path; - path.arcTo(SkRect::MakeXYWH(-40, 15, 300, 90), - SK_Scalar1 * 225, SK_Scalar1 * 90, false); + path.arcTo(SkRect::MakeXYWH(SkIntToScalar(-40), SkIntToScalar(15), + SkIntToScalar(300), SkIntToScalar(90)), + SkIntToScalar(225), SkIntToScalar(90), + false); path.close(); static const int testsPerCol = 8;