aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/helpers/BezierCurve.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-03-03 13:08:46 +0000
committervaxerski <[email protected]>2023-03-03 13:08:46 +0000
commitc5aa20f226a2f829b411b7128d939272de822e68 (patch)
tree4fbfb3baee0a8c3fb99c417931ec7d79d4c8fea7 /src/helpers/BezierCurve.cpp
parent66b8629964e6a5db214f582047e88ec70cf080a8 (diff)
downloadHyprland-c5aa20f226a2f829b411b7128d939272de822e68.tar.gz
Hyprland-c5aa20f226a2f829b411b7128d939272de822e68.zip
fix bezier step approx
Diffstat (limited to 'src/helpers/BezierCurve.cpp')
-rw-r--r--src/helpers/BezierCurve.cpp2
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