aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/shadertext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/shadertext.cpp')
-rw-r--r--gm/shadertext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/shadertext.cpp b/gm/shadertext.cpp
index 07b88614b2..1cf562cc86 100644
--- a/gm/shadertext.cpp
+++ b/gm/shadertext.cpp
@@ -12,7 +12,7 @@ static void makebm(SkBitmap* bm, SkBitmap::Config config, int w, int h) {
SkCanvas canvas(*bm);
SkScalar s = 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;