aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2018-07-10 12:37:55 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-10 19:58:41 +0000
commit4b15dc202ff18c81977c85200d48df341938294f (patch)
tree1430b8efbf203378de3f948f08cc805deab43f2b
parenta7e78ee1d461b91132f01d6b8b0b16bc31063a04 (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.cpp2
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);