diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-12 21:31:00 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-12 21:31:00 +0000 |
commit | 470f07f9a988e8524049346f9ff724a8d21cad63 (patch) | |
tree | ddc7c1a1db7be6ff3e5fb6435737b3d5f3f91bfc /tests/ClipperTest.cpp | |
parent | c9fa63c869d9216869da64c1defb150655ade3af (diff) |
promote floats to scalars for the fixed-point build
git-svn-id: http://skia.googlecode.com/svn/trunk@3370 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/ClipperTest.cpp')
-rw-r--r-- | tests/ClipperTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 |