| Index: samplecode/SampleBitmapRect.cpp
|
| diff --git a/samplecode/SampleBitmapRect.cpp b/samplecode/SampleBitmapRect.cpp
|
| index b39db4c19208d54325c1765d167bdf7812ac82fb..d7eed02ef909094f81c0c84c0ca521b2e857e0dd 100644
|
| --- a/samplecode/SampleBitmapRect.cpp
|
| +++ b/samplecode/SampleBitmapRect.cpp
|
| @@ -37,7 +37,7 @@ static void make_bitmap(SkBitmap* bitmap) {
|
| paint.setAntiAlias(true);
|
| const SkPoint pts[] = { { 0, 0 }, { SCALAR_SIZE, SCALAR_SIZE } };
|
| const SkColor colors[] = { SK_ColorWHITE, SK_ColorBLUE };
|
| - paint.setShader(SkGradientShader::CreateLinear(pts, colors, NULL, 2,
|
| + paint.setShader(SkGradientShader::CreateLinear(pts, colors, nullptr, 2,
|
| SkShader::kClamp_TileMode))->unref();
|
| canvas.drawCircle(SCALAR_SIZE/2, SCALAR_SIZE/2, SCALAR_SIZE/2, paint);
|
| }
|
|
|