Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Unified Diff: gm/imagemagnifier.cpp

Issue 23967014: text size is an SkScalar, Windows reminds me. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/imageblur.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/imagemagnifier.cpp
diff --git a/gm/imagemagnifier.cpp b/gm/imagemagnifier.cpp
index a5f942d5ccbf96e0d1f7e0a19e56a124aa4d438f..f073e3305a8ff8a310ff32b9b05743b6325f61da 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);
}
« no previous file with comments | « gm/imageblur.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698