mirror of
https://github.com/brl/mutter.git
synced 2024-12-28 22:02:14 +00:00
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:
parent
8f6fad06ee
commit
21e55bf635
@ -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>
|
2008-01-25 Øyvind Kolås <pippin@o-hand.com>
|
||||||
|
|
||||||
* clutter/clutter-shader.c: added documentation strings for
|
* clutter/clutter-shader.c: added documentation strings for
|
||||||
|
@ -389,13 +389,7 @@ sort_z_order (gconstpointer a,
|
|||||||
depth_a = clutter_actor_get_depth (CLUTTER_ACTOR(a));
|
depth_a = clutter_actor_get_depth (CLUTTER_ACTOR(a));
|
||||||
depth_b = clutter_actor_get_depth (CLUTTER_ACTOR(b));
|
depth_b = clutter_actor_get_depth (CLUTTER_ACTOR(b));
|
||||||
|
|
||||||
if (depth_a == depth_b)
|
return (depth_b - depth_a);
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (depth_a > depth_b)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user