diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-06 20:13:22 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-06 20:13:22 +0000 |
commit | 111c19bfeba77113e2fc6a4547e325b9f6741f46 (patch) | |
tree | 54ea9cfc3d2878fd30bbea5935cf0a9135649b24 /tests/MathTest.cpp | |
parent | 0abb499dafb2550ad81afe11ffede5cab4904575 (diff) |
fix scalar=fixed for the new tests
git-svn-id: http://skia.googlecode.com/svn/trunk@2427 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/MathTest.cpp')
-rw-r--r-- | tests/MathTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/MathTest.cpp b/tests/MathTest.cpp index 756c68c9b1..1539cd7ccb 100644 --- a/tests/MathTest.cpp +++ b/tests/MathTest.cpp @@ -22,7 +22,7 @@ static void test_blend(skiatest::Reporter* reporter) { for (int a = 0; a <= 255; a++) { int r0 = SkAlphaBlend255(src, dst, a); float f1 = float_blend(src, dst, a / 255.f); - int r1 = SkScalarRoundToInt(f1); + int r1 = SkScalarRoundToInt(SkFloatToScalar(f1)); if (r0 != r1) { float diff = sk_float_abs(f1 - r1); |