[clutter] align-constraint: Fix typo in the vertical align
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] align-constraint: Fix typo in the vertical align
- Date: Fri, 1 Apr 2011 14:37:06 +0000 (UTC)
commit e368538ae04a8ae530955b7e853081093725234f
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Apr 1 15:36:22 2011 +0100
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.
clutter/clutter-align-constraint.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-align-constraint.c b/clutter/clutter-align-constraint.c
index da35c99..8ec342c 100644
--- a/clutter/clutter-align-constraint.c
+++ b/clutter/clutter-align-constraint.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]