aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/poly2poly.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-27 21:47:03 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-27 21:47:03 +0000
commit72e49b8982586a5d8b0425f16d909c05a36ea8c3 (patch)
treefd08e38dad34154b060d34aa6cded73e97d17b75 /gm/poly2poly.cpp
parentc5507bfe2d54e411ef6eb83452b8cbfbae009610 (diff)
warning fixes
Review URL http://codereview.appspot.com/5328050/ git-svn-id: http://skia.googlecode.com/svn/trunk@2548 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/poly2poly.cpp')
-rw-r--r--gm/poly2poly.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/poly2poly.cpp b/gm/poly2poly.cpp
index 116f5fcd1a..6a2df87221 100644
--- a/gm/poly2poly.cpp
+++ b/gm/poly2poly.cpp
@@ -52,7 +52,7 @@ protected:
paint->setColor(SK_ColorRED);
paint->setStyle(SkPaint::kFill_Style);
SkScalar x = D/2;
- float y = D/2 - (fm.fAscent + fm.fDescent)/2;
+ SkScalar y = D/2 - (fm.fAscent + fm.fDescent)/2;
SkString str;
str.appendS32(count);
canvas->drawText(str.c_str(), str.size(), x, y, *paint);