aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ClipperTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ClipperTest.cpp')
-rw-r--r--tests/ClipperTest.cpp5
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