From 470f07f9a988e8524049346f9ff724a8d21cad63 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Mon, 12 Mar 2012 21:31:00 +0000 Subject: promote floats to scalars for the fixed-point build git-svn-id: http://skia.googlecode.com/svn/trunk@3370 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/ClipperTest.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/ClipperTest.cpp') diff --git a/tests/ClipperTest.cpp b/tests/ClipperTest.cpp index 607561d752..d8949bf07a 100644 --- a/tests/ClipperTest.cpp +++ b/tests/ClipperTest.cpp @@ -21,8 +21,9 @@ static void test_hairclipping(skiatest::Reporter* reporter) { paint.setAntiAlias(true); SkCanvas canvas(bm); - canvas.clipRect(SkRect::MakeWH(4, 2)); - canvas.drawLine(1.5, 1.5, 3.5, 3.5, paint); + canvas.clipRect(SkRect::MakeWH(SkIntToScalar(4), SkIntToScalar(2))); + canvas.drawLine(SkFloatToScalar(1.5), SkFloatToScalar(1.5), + SkFloatToScalar(3.5), SkFloatToScalar(3.5), paint); /** * We had a bug where we misinterpreted the bottom of the clip, and -- cgit v1.2.3