mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
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;
|
angle = -angle;
|
||||||
|
|
||||||
/* Convert radians to degrees */
|
/* Convert radians to degrees */
|
||||||
angle = angle * 180.0 / M_PI;
|
angle = angle * 180.0 / G_PI;
|
||||||
|
|
||||||
g_signal_emit (action, rotate_signals[ROTATE], 0,
|
g_signal_emit (action, rotate_signals[ROTATE], 0,
|
||||||
actor, angle,
|
actor, angle,
|
||||||
|
Loading…
Reference in New Issue
Block a user