Index: samplecode/SampleRegion.cpp |
diff --git a/samplecode/SampleRegion.cpp b/samplecode/SampleRegion.cpp |
index 39c27a89281060a4c502b5f5d60104447734410f..886eb96c786630ca6d65ef47b761eee3efefd49c 100644 |
--- a/samplecode/SampleRegion.cpp |
+++ b/samplecode/SampleRegion.cpp |
@@ -76,7 +76,7 @@ static void drawFadingText(SkCanvas* canvas, |
// pos[1] value is where we start to fade, relative to the width |
// of our pts[] array. |
- const SkScalar pos[] = { 0, SkFloatToScalar(0.9f), SK_Scalar1 }; |
+ const SkScalar pos[] = { 0, 0.9f, SK_Scalar1 }; |
SkShader* s = SkGradientShader::CreateLinear(pts, colors, pos, 3, |
SkShader::kClamp_TileMode); |