diff options
Diffstat (limited to 'source/blender/windowmanager/intern/wm_gesture.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_gesture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_gesture.c b/source/blender/windowmanager/intern/wm_gesture.c index eddd7ae1642..de4afa79448 100644 --- a/source/blender/windowmanager/intern/wm_gesture.c +++ b/source/blender/windowmanager/intern/wm_gesture.c @@ -134,7 +134,7 @@ int wm_gesture_evaluate(wmGesture *gesture) int dx= rect->xmax - rect->xmin; int dy= rect->ymax - rect->ymin; if(ABS(dx)+ABS(dy) > TWEAK_THRESHOLD) { - int theta= (int)floor(4.0f*atan2((float)dy, (float)dx)/M_PI + 0.5); + int theta= (int)floor(4.0f*atan2f((float)dy, (float)dx)/(float)M_PI + 0.5f); int val= EVT_GESTURE_W; if(theta==0) val= EVT_GESTURE_E; |