diff options
author | vaxerski <[email protected]> | 2023-03-03 13:08:46 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-03-03 13:08:46 +0000 |
commit | c5aa20f226a2f829b411b7128d939272de822e68 (patch) | |
tree | 4fbfb3baee0a8c3fb99c417931ec7d79d4c8fea7 /src | |
parent | 66b8629964e6a5db214f582047e88ec70cf080a8 (diff) | |
download | Hyprland-c5aa20f226a2f829b411b7128d939272de822e68.tar.gz Hyprland-c5aa20f226a2f829b411b7128d939272de822e68.zip |
fix bezier step approx
Diffstat (limited to 'src')
-rw-r--r-- | src/helpers/BezierCurve.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/BezierCurve.cpp b/src/helpers/BezierCurve.cpp index c979342d..f628c24f 100644 --- a/src/helpers/BezierCurve.cpp +++ b/src/helpers/BezierCurve.cpp @@ -69,5 +69,5 @@ float CBezierCurve::getYForPoint(float x) { if (std::isnan(PERCINDELTA) || std::isinf(PERCINDELTA)) // can sometimes happen for VERY small x return 0.f; - return LOWERPOINT->y + (UPPERPOINT->y - UPPERPOINT->y) * PERCINDELTA; + return LOWERPOINT->y + (UPPERPOINT->y - LOWERPOINT->y) * PERCINDELTA; }
\ No newline at end of file |