commit | 291932e8e42e0556bfef9118231b4ac364ecf5df | [log] [tgz] |
---|---|---|
author | Jim Van Verth <jvanverth@google.com> | Wed Mar 29 14:37:28 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Mar 29 19:32:34 2017 +0000 |
tree | d1f82616486737dfad588bb7b821249940611fce | |
parent | 1c6025cc9da4a4f3a8ad16dde2ae8dcf120ed270 [diff] [blame] |
Fix is_convex() check for inset polys. Change-Id: I1a8a24132b0cf9eb80dd586bf2f1b930adb7b582 Reviewed-on: https://skia-review.googlesource.com/10525 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
diff --git a/tests/InsetConvexPolyTest.cpp b/tests/InsetConvexPolyTest.cpp index e13a25a..5376789 100644 --- a/tests/InsetConvexPolyTest.cpp +++ b/tests/InsetConvexPolyTest.cpp
@@ -23,8 +23,7 @@ SkVector v0 = poly[j] - poly[i]; SkVector v1 = poly[k] - poly[i]; SkScalar perpDot = v0.cross(v1); - int side = winding*perpDot; - if (side < 0) { + if (winding*perpDot < 0) { return false; } }