aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-31 21:13:36 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-31 21:13:36 +0000
commite1613d8284d94d39f7c1b784853cc7d0d019b5b1 (patch)
tree2083798cf5091bf4313c77841386f595cf3374ac
parent42e2cf71d5a867cbc442b8571cf91f8a7c07ead4 (diff)
fix another int -- float warning
git-svn-id: http://skia.googlecode.com/svn/trunk@9384 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--gm/colortype.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/colortype.cpp b/gm/colortype.cpp
index 89bd624972..4cb16fae13 100644
--- a/gm/colortype.cpp
+++ b/gm/colortype.cpp
@@ -50,7 +50,7 @@ protected:
paint.setAntiAlias(true);
paint.setTypeface(fColorType);
- for (int size = 10; size <= 100; size += 10) {
+ for (SkScalar size = 10; size <= 100; size += 10) {
paint.setTextSize(size);
canvas->translate(0, paint.getFontMetrics(NULL));
canvas->drawText("Hamburgefons", 12, 10, 10, paint);