Index: src/views/SkParsePaint.cpp |
diff --git a/src/views/SkParsePaint.cpp b/src/views/SkParsePaint.cpp |
index 344da0b57202e3707f322b08554b8390f0ebaf9d..5b4476423e885bca27197e53872047f686ef7f92 100644 |
--- a/src/views/SkParsePaint.cpp |
+++ b/src/views/SkParsePaint.cpp |
@@ -96,7 +96,7 @@ void SkPaint_Inflate(SkPaint* paint, const SkDOM& dom, const SkDOM::Node* node) |
if (dom.findScalar(node, "opacity", &x)) |
{ |
x = SkMaxScalar(0, SkMinScalar(x, SK_Scalar1)); |
- paint->setAlpha(SkScalarRound(x * 255)); |
+ paint->setAlpha(SkScalarRoundToInt(x * 255)); |
} |
int index = dom.findList(node, "text-anchor", "left,center,right"); |