[clutter/clutter-1.6] align-constraint: Fix typo in the vertical align



commit 02993dec9ae04521ab11237c96c1078c800d28e9
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.
    (cherry picked from commit e368538ae04a8ae530955b7e853081093725234f)
    
    Signed-off-by: Emmanuele Bassi <ebassi linux intel com>

 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 5951b33..a4cd048 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]