fix scalar=fixed for the new tests

git-svn-id: http://skia.googlecode.com/svn/trunk@2427 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-10-06 20:13:22 +00:00
parent 0abb499daf
commit 111c19bfeb

View File

@ -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);