mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
actor: Minor cleanup
In clutter_allocate_align_fill(), x2/y2 may be set twice for no particular reason; save a couple of lines by not doing this. https://bugzilla.gnome.org/show_bug.cgi?id=703809
This commit is contained in:
parent
a3b093d9c8
commit
5bab9a8655
@ -15398,16 +15398,10 @@ clutter_actor_allocate_align_fill (ClutterActor *self,
|
||||
x_align = 1.0 - x_align;
|
||||
|
||||
if (!x_fill)
|
||||
{
|
||||
allocation.x1 += ((available_width - child_width) * x_align);
|
||||
allocation.x2 = allocation.x1 + child_width;
|
||||
}
|
||||
allocation.x1 += ((available_width - child_width) * x_align);
|
||||
|
||||
if (!y_fill)
|
||||
{
|
||||
allocation.y1 += ((available_height - child_height) * y_align);
|
||||
allocation.y2 = allocation.y1 + child_height;
|
||||
}
|
||||
allocation.y1 += ((available_height - child_height) * y_align);
|
||||
|
||||
out:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user