Fix some float/scalar/int confusion.

Review URL: https://codereview.appspot.com/6064043

git-svn-id: http://skia.googlecode.com/svn/trunk@3725 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/gammatext.cpp b/gm/gammatext.cpp
index 9a24d79..1ba3827 100644
--- a/gm/gammatext.cpp
+++ b/gm/gammatext.cpp
@@ -172,7 +172,9 @@
 #if 1
                 canvas->drawText(text, len, x, y, paint);
 #else
-                cgDrawText(cg, text, len, x, SkIntToScalar(HEIGHT) - y, paint);
+                cgDrawText(cg, text, len, SkScalarToFloat(x),
+                           static_cast<float>(HEIGHT) - SkScalarToFloat(y),
+                           paint);
 #endif
                 y += paint.getTextSize() * 2;
             }