diff options
author | Florin Malita <fmalita@chromium.org> | 2018-07-10 12:37:55 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-10 19:58:41 +0000 |
commit | 4b15dc202ff18c81977c85200d48df341938294f (patch) | |
tree | 1430b8efbf203378de3f948f08cc805deab43f2b | |
parent | a7e78ee1d461b91132f01d6b8b0b16bc31063a04 (diff) |
[skottie] Fix polystar points distribution
Points start at bearing 0.
TBR=
Change-Id: I6798b1a5fb4709ab31b13ab76a78f49758e7eec6
Reviewed-on: https://skia-review.googlesource.com/140246
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
-rw-r--r-- | modules/skottie/src/SkottieAdapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/skottie/src/SkottieAdapter.cpp b/modules/skottie/src/SkottieAdapter.cpp index f4bb0a8fbb..1c76e198c2 100644 --- a/modules/skottie/src/SkottieAdapter.cpp +++ b/modules/skottie/src/SkottieAdapter.cpp @@ -68,7 +68,7 @@ void PolyStarAdapter::apply() { SkPath poly; - auto angle = SkDegreesToRadians(fRotation); + auto angle = SkDegreesToRadians(fRotation - 90); poly.moveTo(pt_on_circle(fPosition, fOuterRadius, angle)); poly.incReserve(fType == Type::kStar ? count * 2 : count); |