diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-06-24 19:17:37 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-06-24 19:17:37 +0000 |
commit | 1ca4f26039eb1dc08b301b7624cd05ab9b682cb8 (patch) | |
tree | 29e7a7710c117f74bf2a24c21b92b0a473bf8c15 /bench/GradientBench.cpp | |
parent | f5f83e1f7ed75d6ed74669c6af23de8510d8b723 (diff) |
fix warning about SkPoint initialization
git-svn-id: http://skia.googlecode.com/svn/trunk@1717 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/GradientBench.cpp')
-rw-r--r-- | bench/GradientBench.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bench/GradientBench.cpp b/bench/GradientBench.cpp index e017732003..29f633125b 100644 --- a/bench/GradientBench.cpp +++ b/bench/GradientBench.cpp @@ -167,7 +167,10 @@ protected: this->setupPaint(&paint); const SkRect r = { 0, 0, SkIntToScalar(4), SkIntToScalar(4) }; - const SkPoint pts[] = { 0, 0, SkIntToScalar(100), SkIntToScalar(100) }; + const SkPoint pts[] = { + { 0, 0 }, + { SkIntToScalar(100), SkIntToScalar(100) }, + }; for (int i = 0; i < 1000; i++) { const int a = i % 256; |