diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkGeometry.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/SkGeometry.cpp b/src/core/SkGeometry.cpp index d2aaeff6d9..95b6247801 100644 --- a/src/core/SkGeometry.cpp +++ b/src/core/SkGeometry.cpp @@ -1267,8 +1267,13 @@ static bool quad_pt2OffCurve(const SkPoint quad[3], SkScalar x, SkScalar y, SkPo // Switch over to using cubics rather then quads // Use a different method to create the mid-point (e.g., compute // the two side points, average them, then move it out as needed +#ifdef SK_REDEFINE_ROOT2OVER2_TO_MAKE_ARCTOS_CONVEX #define SK_ScalarRoot2Over2_QuadCircle 0.7072f #else + #define SK_ScalarRoot2Over2_QuadCircle SK_ScalarRoot2Over2 +#endif + +#else #define SK_ScalarRoot2Over2_QuadCircle SK_FixedRoot2Over2 #endif |