From 26c6d58274c50de3a03fe22e4f27b29073efb836 Mon Sep 17 00:00:00 2001 From: "mtklein@google.com" Date: Mon, 16 Sep 2013 19:05:44 +0000 Subject: 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 --- gm/imagemagnifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gm/imagemagnifier.cpp') 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); } -- cgit v1.2.3