aports/testing/flutter/geometry-floats.patch.engine
2025-02-23 21:16:00 +00:00

11 lines
512 B
Text

--- ./flutter/impeller/entity/geometry/round_superellipse_geometry.cc.orig
+++ ./flutter/impeller/entity/geometry/round_superellipse_geometry.cc
@@ -419,7 +419,7 @@
Point pointM{size / 2 - g, size / 2 - g};
Point pointS{s, s};
Point pointJ =
- Point{pow(abs(sinf(thetaJ)), 2 / n), pow(abs(cosf(thetaJ)), 2 / n)} * a +
+ Point{std::powf(std::fabs(sinf(thetaJ)), 2 / n), std::powf(std::fabs(cosf(thetaJ)), 2 / n)} * a +
pointS;
Matrix translationS = Matrix::MakeTranslation(pointS);