From: reed@google.com Date: Mon, 12 Mar 2012 21:31:00 +0000 (+0000) Subject: promote floats to scalars for the fixed-point build X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~16676 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=470f07f9a988e8524049346f9ff724a8d21cad63;p=platform%2Fupstream%2FlibSkiaSharp.git promote floats to scalars for the fixed-point build git-svn-id: http://skia.googlecode.com/svn/trunk@3370 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/tests/ClipperTest.cpp b/tests/ClipperTest.cpp index 607561d..d8949bf 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