mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
align-constraint: Fix typo in the vertical align
We're clamping the x1 coordinate to the nearest pixel, instead of doing so for the y1 coordinate.
This commit is contained in:
parent
524eb23eb7
commit
e368538ae0
@ -144,7 +144,7 @@ clutter_align_constraint_update_allocation (ClutterConstraint *constraint,
|
||||
actor_height = clutter_actor_box_get_height (allocation);
|
||||
allocation->y1 = ((source_height - actor_height) * align->factor)
|
||||
+ source_y;
|
||||
allocation->x1 = floorf (allocation->x1 + 0.5);
|
||||
allocation->y1 = floorf (allocation->y1 + 0.5);
|
||||
allocation->y2 = allocation->y1 + actor_height;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user