diff --git a/include/util/math.hpp b/include/util/math.hpp index b4be2d36..21ed3ddb 100644 --- a/include/util/math.hpp +++ b/include/util/math.hpp @@ -168,7 +168,7 @@ struct Vec { return x == 0.0f && y == 0.0f; } bool isFinite() { - return std::isfinite(x) && std::isfinite(y); + return isfinite(x) && isfinite(y); } Vec clamp(Rect bound); }; diff --git a/src/app/Knob.cpp b/src/app/Knob.cpp index 98859698..dab3154b 100644 --- a/src/app/Knob.cpp +++ b/src/app/Knob.cpp @@ -19,7 +19,7 @@ void Knob::onDragStart(EventDragStart &e) { void Knob::onDragMove(EventDragMove &e) { float range = maxValue - minValue; float delta = KNOB_SENSITIVITY * -e.mouseRel.y * speed; - if (std::isfinite(range)) + if (isfinite(range)) delta *= range; // Drag slower if Mod is held diff --git a/src/app/SVGKnob.cpp b/src/app/SVGKnob.cpp index 0bc514d7..0d0f56f9 100644 --- a/src/app/SVGKnob.cpp +++ b/src/app/SVGKnob.cpp @@ -24,7 +24,7 @@ void SVGKnob::step() { if (dirty) { tw->box.size = box.size; float angle = 0.0; - if (std::isfinite(minValue) && std::isfinite(maxValue)) + if (isfinite(minValue) && isfinite(maxValue)) angle = rescale(value, minValue, maxValue, minAngle, maxAngle); tw->identity(); // Scale SVG to box