summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clutter/clutter-actor.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 088045b21..66585480d 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -15251,7 +15251,15 @@ clutter_actor_allocate_align_fill (ClutterActor *self,
}
out:
- clutter_actor_box_clamp_to_pixel (&allocation);
+
+ child_width = allocation.x2 - allocation.x1;
+ child_height = allocation.y2 - allocation.y1;
+
+ allocation.x1 = floorf (allocation.x1);
+ allocation.y1 = floorf (allocation.y1);
+ allocation.x2 = ceilf (allocation.x1 + child_width);
+ allocation.y2 = ceilf (allocation.y1 + child_height);
+
clutter_actor_allocate (self, &allocation, flags);
}