diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-02-09 02:24:26 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-02-09 02:24:26 +0000 |
commit | d41344553163085bfcfaf7d5882c6028934f8e3b (patch) | |
tree | 5dd30ae71a99eeb6bf4ffd812ae36313d5c5a160 /tests/PaintTest.cpp | |
parent | 337490d4ae0138e93eff01ded76b1140d105a023 (diff) |
update to work correctly for scalar == fixed or float
git-svn-id: http://skia.googlecode.com/svn/trunk@780 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PaintTest.cpp')
-rw-r--r-- | tests/PaintTest.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp index 4e6c8b9d59..5b19090bdb 100644 --- a/tests/PaintTest.cpp +++ b/tests/PaintTest.cpp @@ -8,10 +8,14 @@ static void regression_cubic(skiatest::Reporter* reporter) { SkPath path, stroke; SkPaint paint; - path.moveTo(460.2881309415525, 303.250847066498); - path.cubicTo(463.36378422175284, 302.1169735073363, - 456.32239330810046, 304.720354932878, - 453.15255460013304, 305.788586869862); + path.moveTo(SkFloatToFixed(460.2881309415525f), + SkFloatToFixed(303.250847066498)); + path.cubicTo(SkFloatToFixed(463.36378422175284), + SkFloatToFixed(302.1169735073363), + SkFloatToFixed(456.32239330810046), + SkFloatToFixed(304.720354932878), + SkFloatToFixed(453.15255460013304), + SkFloatToFixed(305.788586869862)); SkRect fillR, strokeR; fillR = path.getBounds(); |