mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
actor: Use box origin instead of direct access
This commit is contained in:
parent
5e1d40c07b
commit
59a9786942
@ -10150,14 +10150,14 @@ clutter_actor_allocate_align_fill (ClutterActor *self,
|
||||
|
||||
if (!x_fill)
|
||||
{
|
||||
allocation.x1 = box->x1
|
||||
allocation.x1 = x_offset
|
||||
+ ((available_width - child_width) * x_align);
|
||||
allocation.x2 = allocation.x1 + child_width;
|
||||
}
|
||||
|
||||
if (!y_fill)
|
||||
{
|
||||
allocation.y1 = box->y1
|
||||
allocation.y1 = y_offset
|
||||
+ ((available_height - child_height) * y_align);
|
||||
allocation.y2 = allocation.y1 + child_height;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user