From dc7a506018719c7b640caf6894fab96d41cdaf81 Mon Sep 17 00:00:00 2001 From: "epoger@google.com" Date: Wed, 11 Jan 2012 20:43:29 +0000 Subject: Fix SkScalar values in ClipperTest.cpp; these were breaking one Windows buildbot TBR=reed Review URL: http://codereview.appspot.com/5535052 git-svn-id: http://skia.googlecode.com/svn/trunk@3020 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/ClipperTest.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/ClipperTest.cpp b/tests/ClipperTest.cpp index f6333ba645..7bb225417e 100644 --- a/tests/ClipperTest.cpp +++ b/tests/ClipperTest.cpp @@ -14,13 +14,13 @@ static void test_edgeclipper(skiatest::Reporter* reporter) { SkEdgeClipper clipper; const SkPoint pts[] = { - { 3.0995476e+010, 42.929779 }, - { -3.0995163e+010, 51.050385 }, - { -3.0995157e+010, 51.050392 }, - { -3.0995134e+010, 51.050400 }, + { SkFloatToScalar(3.0995476e+010), SkFloatToScalar(42.929779) }, + { SkFloatToScalar(-3.0995163e+010), SkFloatToScalar(51.050385) }, + { SkFloatToScalar(-3.0995157e+010), SkFloatToScalar(51.050392) }, + { SkFloatToScalar(-3.0995134e+010), SkFloatToScalar(51.050400) }, }; - const SkRect clip = { 0, 0, 300, 200 }; + const SkRect clip = { 0, 0, SkIntToScalar(300), SkIntToScalar(200) }; // this should not assert, even though our choppers do a poor numerical // job when computing their t values. -- cgit v1.2.3