diff options
Diffstat (limited to 'tests/DrawTextTest.cpp')
-rw-r--r-- | tests/DrawTextTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/DrawTextTest.cpp b/tests/DrawTextTest.cpp index 4f3eb829a1..b1bb19de65 100644 --- a/tests/DrawTextTest.cpp +++ b/tests/DrawTextTest.cpp @@ -80,8 +80,8 @@ static void test_drawText(skiatest::Reporter* reporter) { for (float offsetY = 0.0f; offsetY < 1.0f; offsetY += (1.0f / 16.0f)) { for (float offsetX = 0.0f; offsetX < 1.0f; offsetX += (1.0f / 16.0f)) { - SkPoint point = SkPoint::Make(SkFloatToScalar(25.0f + offsetX), - SkFloatToScalar(25.0f + offsetY)); + SkPoint point = SkPoint::Make(25.0f + offsetX, + 25.0f + offsetY); for (int align = 0; align < SkPaint::kAlignCount; ++align) { paint.setTextAlign(static_cast<SkPaint::Align>(align)); |