diff options
Diffstat (limited to 'main/draw.cpp')
-rw-r--r-- | main/draw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/draw.cpp b/main/draw.cpp index 533d09ca..71de7e72 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -147,7 +147,7 @@ void main_impl::drawEvent() constexpr float α = .1f; dt_expected.jitter = std::fmax(dt_expected.jitter + Δt * α, dt_expected.jitter * (1-α) + Δt * α); - dt_expected.jitter = std::copysignf(std::fminf(dt_expected.value, std::fabsf(dt_expected.jitter)), dt_expected.jitter); + dt_expected.jitter = std::copysign(std::fmin(dt_expected.value, std::fabs(dt_expected.jitter)), dt_expected.jitter); } else dt_expected.jitter = 0; |