2008-01-25 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-group.c: Use a shorter Z order sorting function,
	avoiding the checks.
This commit is contained in:
Emmanuele Bassi 2008-01-25 18:06:11 +00:00
parent 8f6fad06ee
commit 21e55bf635
2 changed files with 6 additions and 7 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -389,13 +389,7 @@ sort_z_order (gconstpointer a,
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