aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-30 20:12:10 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-30 20:12:10 +0000
commit39c2515816e725fb14b7c0408d7ae2aa7182440a (patch)
tree25493e76b945d7fcbccf319d33ed7d359825c40b
parentb18e58c065cad6eb273ee23ef4d68a03791ef3af (diff)
Add missing SkFloatToScalar() calls to fix the build.
git-svn-id: http://skia.googlecode.com/svn/trunk@3108 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--gm/gradients.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gm/gradients.cpp b/gm/gradients.cpp
index f2fc082213..8f2f0ab08a 100644
--- a/gm/gradients.cpp
+++ b/gm/gradients.cpp
@@ -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);