diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-05-14 16:40:24 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-05-14 16:40:24 +0200 |
commit | b167a79c22ed3e65941305a7d8e0fedb796dd11f (patch) | |
tree | d18abbec96b0b12eb26d809b5b9abdc7b305c37c /common/glfw_view.cpp | |
parent | b8d88600b81372a7544ebe420c562c4fa02592e9 (diff) | |
download | qtlocation-mapboxgl-b167a79c22ed3e65941305a7d8e0fedb796dd11f.tar.gz |
always use std:: namespace for math functions
fixes #201
Diffstat (limited to 'common/glfw_view.cpp')
-rw-r--r-- | common/glfw_view.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/glfw_view.cpp b/common/glfw_view.cpp index 4bdac5f6b0..7ec5d3b083 100644 --- a/common/glfw_view.cpp +++ b/common/glfw_view.cpp @@ -88,10 +88,10 @@ void GLFWView::scroll(GLFWwindow *window, double /*xoffset*/, double yoffset) { GLFWView *view = (GLFWView *)glfwGetWindowUserPointer(window); double delta = yoffset * 40; - bool is_wheel = delta != 0 && fmod(delta, 4.000244140625) == 0; + bool is_wheel = delta != 0 && std::fmod(delta, 4.000244140625) == 0; double absdelta = delta < 0 ? -delta : delta; - double scale = 2.0 / (1.0 + exp(-absdelta / 100.0)); + double scale = 2.0 / (1.0 + std::exp(-absdelta / 100.0)); // Make the scroll wheel a bit slower. if (!is_wheel) { |