diff options
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-08-26 14:27:59 +0000 |
---|---|---|
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-08-26 14:27:59 +0000 |
commit | 5f226572b3b6e1a6fea11f5f3c862a47158f66fe (patch) | |
tree | 69e7f761c6e7dc7c58d66bdbfbe499d3385be7e7 /gm/strokerects.cpp | |
parent | fa510413c18263784dc322f136dec2367dc15f18 (diff) |
rolling tree back to its state as of r2169 to see if that fixes Windows buildbots
git-svn-id: http://skia.googlecode.com/svn/trunk@2179 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/strokerects.cpp')
-rw-r--r-- | gm/strokerects.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gm/strokerects.cpp b/gm/strokerects.cpp index 44c012029c..29d8cb0ae8 100644 --- a/gm/strokerects.cpp +++ b/gm/strokerects.cpp @@ -38,11 +38,9 @@ protected: SkScalar y = rand.nextUScalar1() * H; SkScalar w = rand.nextUScalar1() * (W >> 2); SkScalar h = rand.nextUScalar1() * (H >> 2); - SkScalar hoffset = rand.nextSScalar1(); - SkScalar woffset = rand.nextSScalar1(); r->set(x, y, x + w, y + h); - r->offset(-w/2 + woffset, -h/2 + hoffset); + r->offset(-w/2 + rand.nextSScalar1(), -h/2 + + rand.nextSScalar1()); } virtual void onDraw(SkCanvas* canvas) { |