Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-02 06:08:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-02 06:08:33 +0400
commit69bd72c3b6aa1fdaab0c1232a6ba1e3e4c9029fa (patch)
treebba65f8473ee4c3c2b6650f567964955b8611940 /source/blender/windowmanager/intern/wm_gesture.c
parentfb994b3c857bdf3a7313da046580c0fb76e8b620 (diff)
quiet gcc float -> double promotion warnings.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_gesture.c')
-rw-r--r--source/blender/windowmanager/intern/wm_gesture.c2
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;