fix warning about SkPoint initialization
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 24 Jun 2011 19:17:37 +0000 (19:17 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 24 Jun 2011 19:17:37 +0000 (19:17 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@1717 2bbb7eff-a529-9590-31e7-b0007b416f81

bench/GradientBench.cpp

index e0177320037d87b6863599637e42ee1fdd856ca4..29f633125bcd521d7df0f7ee8495d42c8f731166 100644 (file)
@@ -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;