aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/imageblur.cpp
diff options
context:
space:
mode:
authorGravatar mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-16 19:05:44 +0000
committerGravatar mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-16 19:05:44 +0000
commit26c6d58274c50de3a03fe22e4f27b29073efb836 (patch)
tree9e1f02f597c54a6e9bd0f5f01e9fb7232115f0a3 /gm/imageblur.cpp
parentcfa7ba7753720425bf09e7d6ee2905b36b8e27a3 (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/imageblur.cpp')
-rw-r--r--gm/imageblur.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/imageblur.cpp b/gm/imageblur.cpp
index 2b2b73fa2b..0e506534c3 100644
--- a/gm/imageblur.cpp
+++ b/gm/imageblur.cpp
@@ -42,7 +42,7 @@ protected:
int x = rand.nextULessThan(WIDTH);
int y = rand.nextULessThan(HEIGHT);
textPaint.setColor(rand.nextBits(24) | 0xFF000000);
- textPaint.setTextSize(rand.nextULessThan(300));
+ textPaint.setTextSize(rand.nextRangeScalar(0, 300));
canvas->drawText(str, strlen(str), SkIntToScalar(x),
SkIntToScalar(y), textPaint);
}