diff options
Diffstat (limited to 'gm/smallpaths.cpp')
-rw-r--r-- | gm/smallpaths.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/smallpaths.cpp b/gm/smallpaths.cpp index ddbb60dcfd..b6a3b33cdc 100644 --- a/gm/smallpaths.cpp +++ b/gm/smallpaths.cpp @@ -49,7 +49,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; |