diff options
Diffstat (limited to 'samplecode/SampleShaderText.cpp')
-rw-r--r-- | samplecode/SampleShaderText.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleShaderText.cpp b/samplecode/SampleShaderText.cpp index 790137c1d7..2748b559a2 100644 --- a/samplecode/SampleShaderText.cpp +++ b/samplecode/SampleShaderText.cpp @@ -11,7 +11,7 @@ static void makebm(SkBitmap* bm, SkBitmap::Config config, int w, int h) { SkCanvas canvas(*bm); SkScalar s = SkIntToScalar(w < h ? w : h); - SkPoint pts[] = { 0, 0, s, s }; + SkPoint pts[] = { { 0, 0 }, { s, s } }; SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE }; SkScalar pos[] = { 0, SK_Scalar1/2, SK_Scalar1 }; SkPaint paint; |