Index: src/animator/SkAnimateBase.cpp |
diff --git a/src/animator/SkAnimateBase.cpp b/src/animator/SkAnimateBase.cpp |
index 3d50144abcd471a7b89ee3375cf073d215561c4b..8467ce6f3582c1a36da5cb69b5f21cf4546db127 100644 |
--- a/src/animator/SkAnimateBase.cpp |
+++ b/src/animator/SkAnimateBase.cpp |
@@ -163,8 +163,10 @@ void SkAnimateBase::packARGB(SkScalar array[], int count, SkTDOperandArray* conv |
{ |
SkASSERT(count == 4); |
converted->setCount(1); |
- SkColor color = SkColorSetARGB(SkScalarRound(array[0]), SkScalarRound(array[1]), |
- SkScalarRound(array[2]), SkScalarRound(array[3])); |
+ SkColor color = SkColorSetARGB(SkScalarRoundToInt(array[0]), |
+ SkScalarRoundToInt(array[1]), |
+ SkScalarRoundToInt(array[2]), |
+ SkScalarRoundToInt(array[3])); |
(*converted)[0].fS32 = color; |
} |