Index: src/animator/SkAnimatorScript.cpp |
diff --git a/src/animator/SkAnimatorScript.cpp b/src/animator/SkAnimatorScript.cpp |
index df2e5637a23dc1cb1917480743160b61afc4739f..f4ea51890f83ba55ee568ab4338f0d4aefeebda0 100644 |
--- a/src/animator/SkAnimatorScript.cpp |
+++ b/src/animator/SkAnimatorScript.cpp |
@@ -235,7 +235,7 @@ |
if (info->fType != SkType_MemberProperty && info->fType != SkType_MemberFunction) |
value->fOperand.fS32 = *(int32_t*) info->memberData(displayable); // OK for SkScalar too |
if (type == SkType_MSec) { |
- value->fOperand.fScalar = SkScalarDiv((SkScalar) value->fOperand.fS32, 1000); // dividing two ints is the same as dividing two scalars |
+ value->fOperand.fScalar = value->fOperand.fS32 * 0.001f; |
type = SkType_Float; |
} |
break; |