Index: src/utils/SkParseColor.cpp |
diff --git a/src/utils/SkParseColor.cpp b/src/utils/SkParseColor.cpp |
index 37f1308bb1980379bc02d36ec0321259c9e5d879..26ad8b7b1cfa7ed0827b620af7123d43bd91b832 100644 |
--- a/src/utils/SkParseColor.cpp |
+++ b/src/utils/SkParseColor.cpp |
@@ -487,8 +487,8 @@ const char* SkParse::FindColor(const char* value, SkColor* colorPtr) { |
// if (end == NULL) |
// return NULL; |
// !!! range check for errors? |
-// *colorPtr = SkColorSetARGB(SkScalarRound(array[0]), SkScalarRound(array[1]), |
-// SkScalarRound(array[2]), SkScalarRound(array[3])); |
+// *colorPtr = SkColorSetARGB(SkScalarRoundToInt(array[0]), SkScalarRoundToInt(array[1]), |
+// SkScalarRoundToInt(array[2]), SkScalarRoundToInt(array[3])); |
// return end; |
} else |
return FindNamedColor(value, strlen(value), colorPtr); |