clutter/clutter-rotate-action.c: Use G_PI instead of M_PI
...because M_PI is not universally available
This commit is contained in:
parent
6f55746c83
commit
465ab95a64
@ -151,7 +151,7 @@ clutter_rotate_action_gesture_progress (ClutterGestureAction *action,
|
||||
angle = -angle;
|
||||
|
||||
/* Convert radians to degrees */
|
||||
angle = angle * 180.0 / M_PI;
|
||||
angle = angle * 180.0 / G_PI;
|
||||
|
||||
g_signal_emit (action, rotate_signals[ROTATE], 0,
|
||||
actor, angle,
|
||||
|
Loading…
Reference in New Issue
Block a user