mirror of
https://github.com/brl/mutter.git
synced 2025-08-02 06:34:40 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user