diff options
author | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-16 19:05:44 +0000 |
---|---|---|
committer | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-16 19:05:44 +0000 |
commit | 26c6d58274c50de3a03fe22e4f27b29073efb836 (patch) | |
tree | 9e1f02f597c54a6e9bd0f5f01e9fb7232115f0a3 /gm/imagemagnifier.cpp | |
parent | cfa7ba7753720425bf09e7d6ee2905b36b8e27a3 (diff) |
text size is an SkScalar, Windows reminds me.
BUG=
R=jvanverth@google.com
Review URL: https://codereview.chromium.org/23967014
git-svn-id: http://skia.googlecode.com/svn/trunk@11297 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/imagemagnifier.cpp')
-rw-r--r-- | gm/imagemagnifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/imagemagnifier.cpp b/gm/imagemagnifier.cpp index a5f942d5cc..f073e3305a 100644 --- a/gm/imagemagnifier.cpp +++ b/gm/imagemagnifier.cpp @@ -50,7 +50,7 @@ protected: int x = rand.nextULessThan(WIDTH); int y = rand.nextULessThan(HEIGHT); paint.setColor(rand.nextBits(24) | 0xFF000000); - paint.setTextSize(rand.nextULessThan(300)); + paint.setTextSize(rand.nextRangeScalar(0, 300)); canvas->drawText(str, strlen(str), SkIntToScalar(x), SkIntToScalar(y), paint); } |