* clutter/clutter-group.c: Use a shorter Z order sorting function,
avoiding the checks.
+2008-01-25 Emmanuele Bassi <ebassi@openedhand.com>
+
+ * clutter/clutter-group.c: Use a shorter Z order sorting function,
+ avoiding the checks.
+
2008-01-25 Øyvind Kolås <pippin@o-hand.com>
* clutter/clutter-shader.c: added documentation strings for
depth_a = clutter_actor_get_depth (CLUTTER_ACTOR(a));
depth_b = clutter_actor_get_depth (CLUTTER_ACTOR(b));
- if (depth_a == depth_b)
- return 0;
-
- if (depth_a > depth_b)
- return 1;
-
- return -1;
+ return (depth_b - depth_a);
}
static void