Add missing SkFloatToScalar() calls to fix the build.
authortomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 30 Jan 2012 20:12:10 +0000 (20:12 +0000)
committertomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 30 Jan 2012 20:12:10 +0000 (20:12 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@3108 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/gradients.cpp

index f2fc082..8f2f0ab 100644 (file)
@@ -235,7 +235,9 @@ protected:
         center.set(SkIntToScalar(640), SkIntToScalar(512));
         SkScalar radius = SkIntToScalar(640);
         SkColor colors [3] = { 0x7f7f7f7f, 0x7f7f7f7f, 0xb2000000 };
-        SkScalar pos [3] = { 0.0, 0.35, 1.0 };
+        SkScalar pos [3] = { SkFloatToScalar(0.0),
+                             SkFloatToScalar(0.35),
+                             SkFloatToScalar(1.0) };
         SkShader* shader =
             SkGradientShader::CreateRadial(center, radius, colors,
                                            pos, 3, SkShader::kClamp_TileMode);