diff options
author | Tomas Frydrych <tf@openedhand.com> | 2007-01-17 13:03:52 +0000 |
---|---|---|
committer | Tomas Frydrych <tf@openedhand.com> | 2007-01-17 13:03:52 +0000 |
commit | 9a28ac34cd1d588101733a14e47f1c6dbb56cd63 (patch) | |
tree | d53760427fcd042b1ee5c93311aec05bb8fd978a /clutter/clutter-behaviour-path.c | |
parent | 2f0737491b85c9c5e9c6a6b7eb03b502b1a979d5 (diff) | |
download | clutter-9a28ac34cd1d588101733a14e47f1c6dbb56cd63.tar.gz |
fixed point sqrt
Diffstat (limited to 'clutter/clutter-behaviour-path.c')
-rw-r--r-- | clutter/clutter-behaviour-path.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clutter/clutter-behaviour-path.c b/clutter/clutter-behaviour-path.c index a7c1b11bd..4a2acdd0f 100644 --- a/clutter/clutter-behaviour-path.c +++ b/clutter/clutter-behaviour-path.c @@ -196,9 +196,8 @@ node_distance (const ClutterKnot *begin, if (clutter_knot_equal (begin, end)) return 0; - /* FIXME: need fixed point here */ - return sqrt ((end->x - begin->x) * (end->x - begin->x) + - (end->y - begin->y) * (end->y - begin->y)); + return clutter_sqrti ((end->x - begin->x) * (end->x - begin->x) + + (end->y - begin->y) * (end->y - begin->y)); } static gint |