Index: samplecode/SampleText.cpp |
diff --git a/samplecode/SampleText.cpp b/samplecode/SampleText.cpp |
index aa314dd58b03545cd291a0cc33817108bd79d691..c88196195ff9288de1575b5338587d7f4ce28fff 100644 |
--- a/samplecode/SampleText.cpp |
+++ b/samplecode/SampleText.cpp |
@@ -176,7 +176,7 @@ void SkPowerMode::init(SkScalar e) { |
// printf(" %d %g", i, x); |
x = powf(x, ee); |
// printf(" %g", x); |
- int xx = SkScalarRound(x * 255); |
+ int xx = SkScalarRoundToInt(x * 255); |
// printf(" %d\n", xx); |
fTable[i] = SkToU8(xx); |
} |