From 2670fc58710b1d9d1ad5afae7b6ac397e1dc54dd Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 10 Feb 2010 15:37:26 +0000 Subject: [PATCH] test-text-field: Use ActorBox methods for the border Clamp to pixel and use get_size() when painting the border of the text field. --- tests/interactive/test-text-field.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/interactive/test-text-field.c b/tests/interactive/test-text-field.c index 0b41d06..f17388f 100644 --- a/tests/interactive/test-text-field.c +++ b/tests/interactive/test-text-field.c @@ -12,8 +12,8 @@ on_entry_paint (ClutterActor *actor, gfloat width, height; clutter_actor_get_allocation_box (actor, &allocation); - width = allocation.x2 - allocation.x1; - height = allocation.y2 - allocation.y1; + clutter_actor_box_clamp_to_pixel (&allocation); + clutter_actor_box_get_size (&allocation, &width, &height); cogl_set_source_color4ub (255, 255, 255, 255); cogl_path_round_rectangle (0, 0, width, height, 4.0, 1.0); -- 2.7.4