aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/spin_box.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-08-30 10:10:51 -0300
committerJuan Linietsky2015-08-30 10:10:51 -0300
commit947b28324895ba13017d780d392a01ff745c77dc (patch)
treeead279f7d223fb0fdee124f4817c300da853931e /scene/gui/spin_box.cpp
parent7bc9846f169a0a65970c64ca3fc2e799eaa8b990 (diff)
downloadgodot-947b28324895ba13017d780d392a01ff745c77dc.tar.gz
godot-947b28324895ba13017d780d392a01ff745c77dc.tar.zst
godot-947b28324895ba13017d780d392a01ff745c77dc.zip
Diffstat (limited to 'scene/gui/spin_box.cpp')
-rw-r--r--scene/gui/spin_box.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp
index 2478e3204..a48136f54 100644
--- a/scene/gui/spin_box.cpp
+++ b/scene/gui/spin_box.cpp
@@ -125,7 +125,7 @@ void SpinBox::_input_event(const InputEvent& p_event) {
if (drag.enabled) {
float diff_y = drag.mouse_pos.y - cpos.y;
- diff_y=pow(ABS(diff_y),1.8)*SGN(diff_y);
+ diff_y=Math::pow(ABS(diff_y),1.8)*SGN(diff_y);
diff_y*=0.1;
drag.mouse_pos=cpos;