aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SamplePathFill.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SamplePathFill.cpp')
-rw-r--r--samplecode/SamplePathFill.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SamplePathFill.cpp b/samplecode/SamplePathFill.cpp
index 2f0dc6ff25..fbc4c2e749 100644
--- a/samplecode/SamplePathFill.cpp
+++ b/samplecode/SamplePathFill.cpp
@@ -82,7 +82,7 @@ static SkScalar make_star(SkPath* path, int n) {
for (int i = 1; i < n; i++) {
rad += drad;
SkScalar cosV, sinV = SkScalarSinCos(rad, &cosV);
- path->lineTo(c + SkScalarMul(cosV, r), c + SkScalarMul(sinV, r));
+ path->lineTo(c + cosV * r, c + sinV * r);
}
path->close();
return r * 2 * 6 / 5;