Fix clamped_gradients gm to work in fixed.

git-svn-id: http://skia.googlecode.com/svn/trunk@2425 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bungeman@google.com 2011-10-06 19:37:39 +00:00
parent fd8772e008
commit 01744a46e8

View File

@ -205,7 +205,7 @@ protected:
canvas->translate(SkIntToScalar(20), SkIntToScalar(20)); canvas->translate(SkIntToScalar(20), SkIntToScalar(20));
SkShader* shader = SkGradientShader::CreateRadial( SkShader* shader = SkGradientShader::CreateRadial(
SkPoint(center), SkPoint(center),
200, gColors, NULL, 5, SkIntToScalar(200), gColors, NULL, 5,
SkShader::kClamp_TileMode, NULL); SkShader::kClamp_TileMode, NULL);
paint.setShader(shader); paint.setShader(shader);
canvas->drawRect(r, paint); canvas->drawRect(r, paint);